18.03.2017, 08:28
hello i making cmd kill but i get one error and this command dont work best in game
errors
Код:
CMD:kill(playerid, params[]) { if(IsPlayerAdmin(playerid == 1)) return SendClientMessage(playerid, 0x33AA33AA, " [BA:RP]Koristi /kill [playerid]"); if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0x33AA33AA, " [BA:RP]Igrac koga pokusavate ubiti nije online!"); if (sscanf(params, targetid, "ui", SetPlayerHealth)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP] Ubijen si od strane admina!"); else if (IsPlayerAdmin(playerid == 0)) return SendClientMessage (playerid, 0x33AA33AA, "[BA:RP]Niste ovlasceni da koristite ovu komandu!"); return 1; }
Код:
error 017: undefined symbol "targetid"