10.01.2012, 15:22
whats wrong with this ?
errors
pawn Код:
CMD:slap(playerid, params[])
{
SendAdminText(playerid, "/slap", params);
{
new ID;
if(APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "you are not admin.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /slap [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+10);
SendClientMessage(playerid, 0xff0000FF, "You have been slapped By Admin %s", Name);
format(string, 128, "{808080}%s %s has Slapped {FFFF00}%s", AdminLevelName[APlayerData[playerid][PlayerLevel]], AdminName, Name);
SendClientMessageToAll(0xFFFFFFFF, string);
}
return 1;
}
pawn Код:
C:\Documents and Settings\BaLLy\Desktop\The Original\pawno\include\PPC_PlayerCommands.inc(12) : error 017: undefined symbol "Name"
C:\Documents and Settings\BaLLy\Desktop\The Original\pawno\include\PPC_PlayerCommands.inc(13) : error 017: undefined symbol "string"
C:\Documents and Settings\BaLLy\Desktop\The Original\pawno\include\PPC_PlayerCommands.inc(14) : warning 217: loose indentation
C:\Documents and Settings\BaLLy\Desktop\The Original\pawno\include\PPC_PlayerCommands.inc(14) : error 017: undefined symbol "string"