Command error. -
pawn Код:
276 CMD:slap(playerid,params[]) {
277 new targetid,Float:pos[3],pNameP[MAX_PLAYER_NAME];
278 //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You are not an admin.");
279 if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, -1,"USAGE: /slap [ID/PlayerName]");
280 if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Player is not connected or wrong id.");
281 GetPlayerPos(targetid,pos[0],pos[1],pos[2]);
282 SetPlayerPos(targetid,pos[0],pos[1],pos[2]+1);
283 GetPlayerName(targetid,pNameP,sizeof(pNameP));
284 format(string,sizeof(stringg),"Player %s was slapped by an admin.");
285 SendClientMessageToAll(COLOR_YELLOW,stringg);
286 return 1;
287}
pawn Код:
C:\Users\Administrator\Desktop\King\filterscripts\Zcmd.pwn(284) : error 017: undefined symbol "string"
C:\Users\Administrator\Desktop\King\filterscripts\Zcmd.pwn(284) : error 017: undefined symbol "stringg"
C:\Users\Administrator\Desktop\King\filterscripts\Zcmd.pwn(284) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\King\filterscripts\Zcmd.pwn(284) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Re: Command error. -
Re: Command error. -