14.05.2011, 18:26
Hii..
I made my command /giveweapon
but i get fu**ing error..
L:\Users\Dino\Documents\Dino\SAMP\samp03csvr_R2-2_win32\gamemodes\sxrp.pwn(497) : error 010: invalid function or declaration
COMMAND:
I made my command /giveweapon
but i get fu**ing error..
L:\Users\Dino\Documents\Dino\SAMP\samp03csvr_R2-2_win32\gamemodes\sxrp.pwn(497) : error 010: invalid function or declaration
COMMAND:
Код:
CMD:giveweapon(playerid, params[]) { new id, weapon; if(sscanf(params, "u", id)) { SendClientMessage(playerid, COLOR_ORANGE, "/giveweapon [playerid]"); } weapon = GetPlayerWeapon(playerid); switch(weapon) { case 16, 18, 35, 36, 37, 38, 39, 40, 44, 45, 46, 0: SendClientMessage(playerid, SPLAVA, "Invalid weapon."); default: { SetPVarInt(id,"gunID",playerid); SetPVarInt(playerid,"gun",weapon); SetPVarInt(playerid,"slot",GetWeaponSlot(weapon)); } } } return 1; }