/tmp/text41l09K.sma(17) : error 035: argument type mismatch (argument 2)
/tmp/text41l09K.sma(18) : error 035: argument type mismatch (argument 2)
/tmp/text41l09K.sma(19) : error 035: argument type mismatch (argument 2)
/tmp/text41l09K.sma(20) : error 035: argument type mismatch (argument 2)
Plik sma wygląda tak:
[font="monospace"][color="#000000"]
[/color][/font]/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fun>
#define PLUGIN "Pb Shop"
#define VERSION "1.0"
#define AUTHOR "[AvP] ELOS"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /sklep",ADMIN_LEVEL_H,"Sklep");
register_clcmd("say_team /sklep",ADMIN_LEVEL_H,"Sklep");
register_clcmd("say /shop",ADMIN_LEVEL_H,"Sklep");
register_clcmd("say_team /shop",ADMIN_LEVEL_H,"Sklep");
}
public Sklep(id)
{
new tytul[25];
format(tytul, 24, "Sklep Paintball VIP");
new menu = menu_create(tytul, "Sklep_Handler");
menu_additem(menu, "Granat Wybuchowy Koszt: 5000$");//1
menu_additem(menu, "Wyrzutnia Granatow Koszt: 14000$");//2
menu_additem(menu, "Granat Dymny Koszt: 4000$");//3
menu_additem(menu, "Super Marker Koszt: 6000$");//4
menu_display(id, menu);
}
public Sklep_Handler(id, menu, item)
{
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE;
new kasa = cs_get_user_money(id);
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_CONTINUE;
}
switch(item)
{
case 0:
{
if(kasa >= 5000)
{
cs_set_user_money(id, kasa-5000);
give_item(id, "weapon_hegrenade")
client_print(id, print_chat, "[Sklep] Kupiles Granat Wybuchowy!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 1:
{
if(kasa >= 14000)
{
cs_set_user_money(id, kasa-14000);
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
client_print(id, print_chat, "[Sklep] Kupiles Wyrzutnie Granatow posiadasz 2 ladunki!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 2:
{
if(kasa >= 4000)
{
cs_set_user_money(id, kasa-4000);
give_item(id, "weapon_smokegrenade")
client_print(id, print_chat, "[Sklep] Kupiles Granat Dymny!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
case 3:
{
if(kasa >= 6000)
{
cs_set_user_money(id, kasa-6000);
give_item(id, "weapon_p90")
give_item(id, "weapon_primammo");
give_item(id, "weapon_primammo");
client_print(id, print_chat, "[Sklep] Kupiles Super Marker!");
}
else
client_print(id, print_chat, "[Sklep] Masz za malo kasy!");
}
}
return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*
{
rtf1 ansi deff0
{
fonttbl
{
f0 fnil Tahoma;
}
}
n viewkind4 uc1 pard lang1045 f0 fs16 n par
}
*/


Dodatki SourceMod



Temat jest zamknięty











