Public only id 0????
#1

Hey guys,

i make a public function, but it works only for id 0, and it does nothing for other ids any idea?

Code:
new Tutonumber[MAX_PLAYERS];
Code:
forward tutorial(playerid);
Onplayerspawn i set :
Code:
SetTimer("Tutorial", 25000, false);
And the function :

Code:
public Tutorial(playerid)
{
    new pname[24], string[128]; 
    GetPlayerName(playerid, pname, 24); 
	if(Tutonumber[playerid] == 0)
	{
    format(string, 128, "-------------------XXXXXXXX %s----------------------", pname);
	SendClientMessage(playerid, COLOR_YELLOW, string);
	format(string, 128, "XXXXXXXXXXXXXXXXXXX");
	SendClientMessage(playerid,COLOR_WHITE, string);
	format(string, 128, "XXXXXXXXXXXXXXXXXXXXXXX");
	SendClientMessage(playerid,COLOR_WHITE, string);
 	format(string, 128, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
	SendClientMessage(playerid,COLOR_WHITE, string);
	format(string, 128, "----------------------------------------------------------------------------");
	SendClientMessage(playerid,COLOR_YELLOW, string);
	SetTimer("Tutorial", 19000, false);
	Tutonumber[playerid] = 1;
	}
	else if(Tutonumber[playerid] == 1)
	{
	format(string, 128, "---------------------------XXXXXXXXXXXX----------------------------");
	SendClientMessage(playerid,COLOR_YELLOW, string);
	format(string, 128, "----------------------------------------------------------------------------");
	SendClientMessage(playerid,COLOR_YELLOW, string);
	SetTimer("Tutorial", 25000, false);
	Tutonumber[playerid] = 2;
	}
	else if(Tutonumber[playerid] == 2)
	{
	format(string, 128, "---------------------------XXXXXXXXXXXXXXXXX--------------------------------");
	SendClientMessage(playerid,COLOR_YELLOW, string);
	format(string, 128, "----------------------------------------------------------------------------");
	SendClientMessage(playerid,COLOR_YELLOW, string);
	SetTimer("Tutorial", 25000, false);
	Tutonumber[playerid] = 3;
	}
	else if(Tutonumber[playerid] == 3)
	{
	SendClientMessage(playerid,COLOR_GREY, string);
	format(string, 128, "XXXXXXXXXXXXXXXX%s.", pname);
	SetTimer("OnPlayerSpawn", 100, false);
	}
	return 1;
}
And moreover, i set : SetPlayerColor(playerid, COLOR_WHITE); in OnPlayerConnect

But i seems that players got random name color...


Who can help me please?

Thanks
Reply


Messages In This Thread
Public only id 0???? - by falor - 03.03.2012, 22:36
Re: Public only id 0???? - by Nuke547 - 03.03.2012, 22:38
Re : Public only id 0???? - by falor - 03.03.2012, 22:46
Re: Public only id 0???? - by Nuke547 - 03.03.2012, 22:57
Re: Public only id 0???? - by Nuke547 - 03.03.2012, 23:04
Re : Public only id 0???? - by falor - 03.03.2012, 23:08
Re: Public only id 0???? - by Nuke547 - 03.03.2012, 23:10
Re : Public only id 0???? - by falor - 03.03.2012, 23:29

Forum Jump:


Users browsing this thread: 3 Guest(s)