SA-MP Forums Archive
What it's wrong with this ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What it's wrong with this ? (/showthread.php?tid=542464)



What it's wrong with this ? - HY - 19.10.2014

Hello ! How title say, I have a problem :

pawn Код:
CMD:sheal(playerid,params[])
{
    if(AccInfo[playerid][SADMIN] >= 1)
    {
        SetPlayerHealth(playerid,100)
        SendClientMessage(playerid,-1,"{FF0000}S.Admin : {0066CC}You have been healed !");
    }
    return 1;
}
And the problem of that code it's error :

pawn Код:
C:\Users\USER\Desktop\Programe\Romania Fantastic Stunt by Teddy\Romania Fantastic Stunt\filterscripts\LuxAdmin.pwn(4531) : error 001: expected token: ";", but found "-identifier-"

I tried to solve this, but didn't worked, can anyone help me ?


Re: What it's wrong with this ? - Rudy_ - 19.10.2014

pawn Код:
CMD:sheal(playerid,params[])
{
    if(AccInfo[playerid][SADMIN] >= 1)
    {
        SetPlayerHealth(playerid,100);
        SendClientMessage(playerid,-1,"{FF0000}S.Admin : {0066CC}You have been healed !");
    }
    return 1;
}



Re: What it's wrong with this ? - HY - 19.10.2014

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
pawn Код:
CMD:sheal(playerid,params[])
{
    if(AccInfo[playerid][SADMIN] >= 1)
    {
        SetPlayerHealth(playerid,100);
        SendClientMessage(playerid,-1,"{FF0000}S.Admin : {0066CC}You have been healed !");
    }
    return 1;
}
Oh, Rudy, thanks, you saved my life. I forgot to add ";" +rep