02.04.2011, 16:01
Quote:
I can only refer to my last topic -> [Include] Group Macros
But if you want a solution for your code You got 4 arrays and for your code in OnPlayerEnterVehicle they need to have all the same size The size of the biggest one, also 22 pawn Код:
pawn Код:
Than another problem why your code would never work Because in OnPlayerEnterVehicle the player enters the vehicle So he cant be removed if he isnt in it Just move your loop in OnPlayerStateChange Another thing you could do would be to seperate the loops so you dont need to change the size of the arrays |
Ok, i have done like this now
pawn Код:
new Team1Car[22], Team2Car[22], Team3Car[22], Team4Car[22];
public OnPlayerEnterVehicle(playerid, vehicleid)
{
for(new var; var < 22; var++)
{
pawn Код:
error 017: undefined symbol "vehicleid"
pawn Код:
stock TeamCar[4][22]; //2d arrays, looks more clear