28.10.2012, 15:56
Ok I have did it
forward MapChange();
public MapChange() //After 15 mins.
{
new Float,Float:y,Float:z
for(new i; i< MAX_PLAYERS; i++) //Looping through players.
{
if(IsPlayerConnected(i)) //After looping, we're choosing connected players.
{
SetPlayerPos(i,x,y,z); //Setting all the connected player's position. You've to set the pos.
}
}
return 1;
}
But, error 001: expected token: ";", but found "for"
forward MapChange();
public MapChange() //After 15 mins.
{
new Float,Float:y,Float:z
for(new i; i< MAX_PLAYERS; i++) //Looping through players.
{
if(IsPlayerConnected(i)) //After looping, we're choosing connected players.
{
SetPlayerPos(i,x,y,z); //Setting all the connected player's position. You've to set the pos.
}
}
return 1;
}
But, error 001: expected token: ";", but found "for"