L:\Users\Dino\Documents\Dino\SAMP\samp03csvr_R2-2_win32\gamemodes\sxrp.pwn(497) : error 010: invalid function or declaration
Код:
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;
}
I don't understand u .. can u put on command?