/yellow [ERROR] - 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: /yellow [ERROR] (
/showthread.php?tid=498151)
/yellow [ERROR] -
AwokenNeoX - 02.03.2014
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
Re: /yellow [ERROR] -
Konstantinos - 02.03.2014
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.
Re: /yellow [ERROR] -
SupaVZ - 02.03.2014
Okay, dose your script compile without any errors/warnings?
AW: Re: /yellow [ERROR] -
AwokenNeoX - 02.03.2014
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
Re: /yellow [ERROR] -
SupaVZ - 02.03.2014
Er, have you got the hex code for the color yellow defind?
AW: Re: /yellow [ERROR] -
AwokenNeoX - 02.03.2014
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
Re: /yellow [ERROR] -
SupaVZ - 02.03.2014
#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.
Re: /yellow [ERROR] -
gotwarzone - 02.03.2014
Try this
Quote:
dcmd_yellow(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
SetPlayerColor(playerid,yellow);
return 1;
}
return 1;
}
|
AW: /yellow [ERROR] -
AwokenNeoX - 02.03.2014
Nothing works ...
Re: /yellow [ERROR] -
SupaVZ - 02.03.2014
Well do any other commands work? or is it just this one command you are using that is not working.