19.11.2013, 11:25
Hi , I've scripted a timer that calls each 1 sec my map change system
so I wanted to set pos/give weapons for teams in the MapChange system....
this is why I have this callback
-Now the map change system
How to fix that error ? "NextMap" is a public timer for everyone .... how to make it knows the playerid ? should I use a boucle ?
thanks
so I wanted to set pos/give weapons for teams in the MapChange system....
this is why I have this callback
pawn Код:
public GiveStuffs(playerid) // Here I give weapons/setposition...
{
GivePlayerWeapon(playerid,5000); //exemple
SetPlayerPos(playerid,bla,bla,bla);
return 1;
}
pawn Код:
public NextMap() // this is a map change system I call this callback each 1 sec
{
//codes....
GiveStuffs(playerid); // I get an error in that line because playerid isn't defined
return 1;
}
thanks