[HELP] /aheal command !
#1

What i have done wrong ?

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;
}
Error :
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.
That line is :
pawn Код:
else
Reply


Messages In This Thread
[HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:21
Re: [HELP] /aheal command ! - by gychem - 03.12.2010, 20:23
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:27
Re: [HELP] /aheal command ! - by gychem - 03.12.2010, 20:40
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 03.12.2010, 20:52
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 04.12.2010, 07:02
Re: [HELP] /aheal command ! - by Ash. - 04.12.2010, 07:08
Re: [HELP] /aheal command ! - by [Aka]Dragonu - 04.12.2010, 07:46
Re: [HELP] /aheal command ! - by fangoth1 - 04.12.2010, 10:12
Re: [HELP] /aheal command ! - by fangoth1 - 04.12.2010, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)