(3753) : warning 202: number of arguments does not match definition
#1

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
Reply
#2

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

Have you defined the colour ADMINBLUE?
Reply
#4

Ok, thanks i will try it now
Reply
#5

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

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
Reply
#7

Код:
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;
}
Reply
#8

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

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
Reply
#10

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.....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)