Quote:
Originally Posted by ThatThoseTheThy
PHP код:
CMD:derby(playerid,params[])
{
for(new x = 0; x < 6; x++)
{
SetPlayerVirtualWorld(playerid,23);
if(DerbyVehicle[x][occupied]) continue;
PutPlayerInVehicle(playerid, DerbyVehicle[x][id], 0);
DerbyVehicle[x][occupied] = true;
break;
}
return 1;
}
try this, you neeeded to define x before you use it. That's why you have to type twice.
|
You literally changed nothing.......
The problem here is, the vehicle 'DerbyVehicle[x][id]' doesn't exist, so when you do the command again, it goes to the next derby vehicle and that one might exist. That's why it seems like you need to do it twice.