27.07.2015, 19:06
Quote:
1. Skin id 74 doesn't exists so you must add if(i != 74)
2. Change MapChange =-1; to MapChange = 0; or MapChange -= 1; =-1; to -= 1; |
I will be trying to find a fix now.
maybe there is something wrong with the loop?
UPDATE: when i use
PHP код:
forward StartedNewRound();
public StartedNewRound() // The callback we forwarded in the beginning of this tutorial
{
for(new i = 1; i < MAX_PLAYERS; i++)
{ // this loops everyone in the server also you can use foreach include for this part
SpawnPlayer(i); // Re Spawns everyone in the server which then gets OnPlayerSpawn Callback called
}
return 1;
}
PHP код:
forward StartedNewRound();
public StartedNewRound() // The callback we forwarded in the beginning of this tutorial
{
for(new i = 0; i < MAX_PLAYERS; i++)
{ // this loops everyone in the server also you can use foreach include for this part
SpawnPlayer(i); // Re Spawns everyone in the server which then gets OnPlayerSpawn Callback called
}
return 1;
}