Posts: 2,368
Threads: 27
Joined: Jun 2010
Reputation:
0
I've created moving camera in Class Selection. It's working fine, i spawn player it spawns BUT when i choose some other player class like the second one, the player doesn't spawns and the camera gets still on the Class Selection. The first player class is spawned correctly but the other ones are not spawning -.- Anybody can tell me, what i can do with it?
Posts: 1,250
Threads: 92
Joined: Mar 2011
Reputation:
0
Pretty sure it's code related problem. We can't help you if you don't show us some part of your code.
Posts: 398
Threads: 19
Joined: Aug 2011
Reputation:
0
Nevermind...
This code looks fine provided all the variables are correct.
Try adding KillTimer(PlayerInfo[playerid][SpawnTimer]); above PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid); in OnPlayerRequestClass
and change the code in OnPlayerSpawn to OnPlayerRequestSpawn