Changing from "i" to "playerid"
#1

So i have those lines and there are putted on player login.
Код HTML:
				    for(new i = 0; i < MAX_PLAYERS; i++)
				    {
				    TextDrawHideForPlayer(i, Textdraw2);
				    TextDrawHideForPlayer(i, Textdraw3);
					InterpolateCameraPos(i, 1698.550170, -1732.532470, 17.280830, 1051.786376, -1731.606079, 21.769128, 10000, 1);
					InterpolateCameraLookAt(i, 1694.554809, -1732.645507, 17.124620, 1047.789062, -1731.675415, 21.897232, 10000, 1);
					}
And my problem is like this:
We have 2 accounts , one logged and spawned and one that is staying at login box.
When he enters the password , the player who is spawned it goes to InterpolateCameraPos , because is using the "i" with Foreach(player, i);
So i want to change from "i" to playerid to avoid the problem.
Thanks.
Reply


Messages In This Thread
Changing from "i" to "playerid" - by buburuzu19 - 02.09.2014, 14:44
Re: Changing from "i" to "playerid" - by Fred1993 - 02.09.2014, 14:51
Re: Changing from "i" to "playerid" - by buburuzu19 - 02.09.2014, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)