Event system help
#4

Quote:
Originally Posted by silverms
Посмотреть сообщение
mm can u give me the code pleasei will appreciaat it.!
Код:
//delete these lines from your script
new Float:X, Float:Y, Float:Z; 

// and put these once at the top of your script
new Float:X[MAX_PLAYERS]; 
new Float:Y[MAX_PLAYERS];
new Float:Z[MAX_PLAYERS];

//because the variables you created gets updated every time a player join event but the three lines i asked you to put at the top of your script are global variables they are created for all players because i added the "[MAX_PLAYERS]" 

//and replace all the
GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);

//to 
GetPlayerPos(playerid, X[playerid], Y[playerid], Z[playerid]);
Reply


Messages In This Thread
Event system help - by silverms - 08.01.2017, 06:59
Re: Event system help - by lackmail - 08.01.2017, 07:06
Re: Event system help - by silverms - 08.01.2017, 07:08
Re: Event system help - by lackmail - 08.01.2017, 07:26
Re: Event system help - by silverms - 08.01.2017, 07:52
Re: Event system help - by silverms - 08.01.2017, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)