Duble command
#3

Quote:
Originally Posted by ThatThoseTheThy
Посмотреть сообщение
PHP код:
CMD:derby(playerid,params[])
{
for(new 
06x++)
{
SetPlayerVirtualWorld(playerid,23);
if(
DerbyVehicle[x][occupied]) continue;
PutPlayerInVehicle(playeridDerbyVehicle[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.
Reply


Messages In This Thread
Duble command - by kalanerik99 - 07.05.2015, 19:15
Re: Duble command - by ThatThoseTheThy - 07.05.2015, 19:30
Re: Duble command - by Threshold - 07.05.2015, 23:48

Forum Jump:


Users browsing this thread: 3 Guest(s)