03.12.2010, 20:21
What i have done wrong ?
Error :
That line is :
pawn Код:
if(strcmp(cmd, "/aheal", true) == 0)
{
tmp = strtok(cmdtext, idx);
new id;
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /heal [playerid]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 101)
{
format(string, sizeof(string), "Server : %s Has been slapped by admin %s.", PlayerName[giveplayerid], PlayerName[playerid]);
SendClientMessageToAll(COLOR_RED, string);
}
else
{
SetPlayerHealth(id, 100.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
}
return 1;
}
pawn Код:
D:\Games\GTA San Andreas\server\gamemodes\slrpg.pwn(9813) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
else