Help me with these two errors.
#7

Quote:
Originally Posted by Kush
Посмотреть сообщение
PHP код:
CMD:god(playeridparams[]) 
{
    if(
PlayerInfo[playerid][pAdmin] >= 3)
    {
        
SetPlayerHealth(playerid10000000);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    }
    return 
1;

Worked, cool thanks. Is this right for my other command?

Код:
CMD:godcar(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] >= 3)
    {
        if(IsPlayerInAnyVehicle(playerid))
			{
 			SetVehicleHealth(playerid, 999999);
			SendClientMessage(playerid,COLOR_GREEN,"**GodCar Activated**");
    }
    	else
    {
        SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this command!");
    }
	    SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle to use this command!");
	}
   	return 1;
}
Reply


Messages In This Thread
Help me with these two errors. - by Shockey HD - 26.07.2011, 21:06
Re: Help me with these two errors. - by geerdinho8 - 26.07.2011, 21:12
Re: Help me with these two errors. - by [MG]Dimi - 26.07.2011, 21:19
Re: Help me with these two errors. - by Kush - 26.07.2011, 21:25
Re: Help me with these two errors. - by Shockey HD - 26.07.2011, 21:25
Re: Help me with these two errors. - by Shadoww5 - 26.07.2011, 21:31
Re: Help me with these two errors. - by Shockey HD - 26.07.2011, 21:37
Re: Help me with these two errors. - by Shadoww5 - 26.07.2011, 21:47
Re: Help me with these two errors. - by AndreT - 26.07.2011, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)