/yellow [ERROR]
#1

This is my Command

public OnPlayerCommandText(playerid, cmdtext[])

Код:
dcmd(yellow,9,cmdtext);
// I dont know why but I write 9

The Command:

Код:
dcmd_yellow(playerid,params[])
{
	#pragma unused params
	if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
	{
	    SetPlayerColor(playerid,yellow);
	    return 1;
	}
	return 1;
}
Ingame he said : Unkown Command
Reply
#2

Do you only use DCMD in that mode for the commands? For example if you use both DCMD and ZCMD, some of the command will return unknown command message.
Reply
#3

Okay, dose your script compile without any errors/warnings?
Reply
#4

Quote:
Originally Posted by Dean_Nelson
Посмотреть сообщение
Okay, dose your script compile without any errors/warnings?
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
No Errors but the command still dont work I only used dcmd
Reply
#5

Er, have you got the hex code for the color yellow defind?
Reply
#6

Quote:
Originally Posted by Dean_Nelson
Посмотреть сообщение
Er, have you got the hex code for the color yellow defind?
Yes, I dont have a Admin System in my GM so I use LuxAdmin System and I want to add /yellow there but for Admin Level 3+ but it dont work..

COLOR defined
Reply
#7

#define COLOR_YELLOW ffcc00


^^ put that at the top. ^^

dcmd_yellow(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
SetPlayerColor(playerid,COLOR_YELLOW);
return 1;
}
return 1;
}


try that.
Reply
#8

Try this

Quote:

dcmd(yellow,6,cmdtext);

Quote:

dcmd_yellow(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
SetPlayerColor(playerid,yellow);
return 1;
}
return 1;
}

Reply
#9

Nothing works ...
Reply
#10

Well do any other commands work? or is it just this one command you are using that is not working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)