Command
#1

Hello.
I'm creating a new command but i get some few errors.
So would be nice if anyone could help me with this.

This command is supposed to put my color as red but when i compile it i get error and i also miss how to take the red color off to the default one like /coloroff

Код:
CMD:setcolour
if (strcmp("/setcolor", cmdtext, true, 10) == 0)
if(APlayerData[playerid][PlayerLevel] >= 2 || IsPlayerAdmin(playerid))
	{
       SetPlayerColor(playerid,0xFF0000AA) 
		return 1;
	}
	return 0;
}
Reply
#2

PHP код:
CMD:setcolour(playerid,params[])
{
        if(
APlayerData[playerid][PlayerLevel] >= || IsPlayerAdmin(playerid))
    {
       
SetPlayerColor(playerid,0xFF0000AA
        return 
1;
    }
    return 
1;

Reply
#3

Tried that and got 1 error.
Код:
C:\Users\linda\Documents\Ny mappe (2)\pawno\include\PlayerCommands.inc(12) : error 001: expected token: ";", but found "return"
Reply
#4

pawn Код:
CMD:setcolour(playerid,params[])
{
        if(APlayerData[playerid][PlayerLevel] >= 2 || IsPlayerAdmin(playerid))
    {
       SetPlayerColor(playerid,0xFF0000AA);
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)