SA-MP Forums Archive
(3753) : warning 202: number of arguments does not match definition - 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: (3753) : warning 202: number of arguments does not match definition (/showthread.php?tid=339633)



(3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

Hi i haven't done that much scripting but i was attempting to set the admin name colour to ADMINBLUE but i get a warning saying "(3753) : warning 202: number of arguments does not match definition" but when i go ingame the admin name colour stay's the same here is the code that i used
Код:
SetPlayerColor(playerid, Player[playerid][AdminDuty],ADMINBLUE);
and here is the other parts of that code.....
Код:
if(Player[playerid][AdminDuty] == 1)
			{
			    if(strlen(Player[playerid][AdminName]) >= 1 || strcmp(Player[playerid][AdminName], "Nothing", true) == 0)
			    {
			        SendClientMessage(playerid, WHITE, "You are now on admin duty. You will appear on the /admins list and you'll be able to view reports.");
			        Player[playerid][AdminDuty] = 1;

				    if(Player[playerid][AdminLevel] >= 3)
			        {
			        	SetPlayerHealth(playerid, 500000);
			        }

			        format(Player[playerid][NormalName], 255, "%s", GetName(playerid));

			        SetPlayerName(playerid, Player[playerid][AdminName]);
			        SetPlayerSkin(playerid, Player[playerid][AdminSkin]);
                    SetPlayerColor(playerid, Player[playerid][AdminDuty],ADMINBLUE);
Please help if you can i would greatly appreciate it, Thank you


Re: (3753) : warning 202: number of arguments does not match definition - fordawinzz - 04.05.2012

pawn Код:
SetPlayerColor( playerid, ADMINBLUE );



Re: (3753) : warning 202: number of arguments does not match definition - Kukkurloom - 04.05.2012

Have you defined the colour ADMINBLUE?


Re: (3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

Ok, thanks i will try it now


Re: (3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

Quote:
Originally Posted by fordawinzz
Посмотреть сообщение
pawn Код:
SetPlayerColor( playerid, ADMINBLUE );
Nope That still isn't working but it did fix the warning


Re: (3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

Quote:
Originally Posted by Kukkurloom
Посмотреть сообщение
Have you defined the colour ADMINBLUE?
Yes i have

#define NEWBIE_CHAT 0xDBE1E6FF
#define AQUAGREEN 0x03D687FF
#define ADMINBLUE 0x99FFFFAA
#define ADMINORANGE 0xF6970CAA
#define WHITE 0xFFFFFFFF
#define BLACK 0x000000FF


Re: (3753) : warning 202: number of arguments does not match definition - FOTIS6 - 04.05.2012

Код:
if(Player[playerid][AdminDuty] == 1)
{
	if(strlen(Player[playerid][AdminName]) >= 1 || strcmp(Player[playerid][AdminName], "Nothing", true) == 0)
	{
		SendClientMessage(playerid, WHITE, "You are now on admin duty. You will appear on the /admins list and you'll be able to view reports.");
		Player[playerid][AdminDuty] = 1;

		if(Player[playerid][AdminLevel] >= 3)
		{
		       	SetPlayerHealth(playerid, 500000);
		}

		format(Player[playerid][NormalName], 255, "%s", GetName(playerid));

		SetPlayerName(playerid, Player[playerid][AdminName]);
		SetPlayerSkin(playerid, Player[playerid][AdminSkin]);
                SetPlayerColor(playerid,ADMINBLUE);
         }
         return 1;
}



Re: (3753) : warning 202: number of arguments does not match definition - $$inSane - 04.05.2012

Use this on the top:
PHP код:
#define ADMINBLUE  0x0000FFFF 
Use this in the admin duty stuff .. blah blah:
PHP код:
SetPlayerColor(playeridADMINBLUE ); 



Re: (3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
Use this on the top:
PHP код:
#define ADMINBLUE  0x0000FFFF 
Use this in the admin duty stuff .. blah blah:
PHP код:
SetPlayerColor(playeridADMINBLUE ); 
Nope Still not working


Re: (3753) : warning 202: number of arguments does not match definition - stretchmyjerky - 04.05.2012

This is what i have now

if(Player[playerid][AdminDuty] == 1)
{
if(strlen(Player[playerid][AdminName]) >= 1 || strcmp(Player[playerid][AdminName], "Nothing", true) == 0)
{
SendClientMessage(playerid, WHITE, "You are now on admin duty. You will appear on the /admins list and you'll be able to view reports.");
Player[playerid][AdminDuty] = 1;

if(Player[playerid][AdminLevel] >= 3)
{
SetPlayerHealth(playerid, 500000);
}

format(Player[playerid][NormalName], 255, "%s", GetName(playerid));

SetPlayerName(playerid, Player[playerid][AdminName]);
SetPlayerSkin(playerid, Player[playerid][AdminSkin]);
SetPlayerColor(playerid, ADMINBLUE );



There is also no Warnings or errors but it still won't change the playerid colour when i go onto adminduty.....