What it's wrong with this ?
#1

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 ?
Reply
#2

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;
}
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)