[HELP] Derby code not executing..
#9

Quote:
Originally Posted by SyntaxQ
Посмотреть сообщение
Thanks a lot!



PutPlayerInVehicle(playerid, vehicleid, seatid); 424 is the vehicle ID.

I have one question..
I have created random spawns for the derby players to spawn, can two players spawn at one place? (This will be a big problem) if yes, can you tell me the way to avoid this?
So you have 424 vehicles on your server? How can you be sure that 424 is the current vehicle created? I think you think it's vehicle MODEL but really it's model ID.

You'd have to create another variable of the type boolean to check if that specific row has been used,
PSEUDO version below:
pawn Код:
if(RandomSpawn[idx][5] == true){
    // This has been used so add one to idx and redo...
}
Reply


Messages In This Thread
[HELP] Derby code not executing.. - by SyntaxQ - 02.03.2014, 05:29
Re: [HELP] Derby code not executing.. - by SyntaxQ - 02.03.2014, 06:29
Re: [HELP] Derby code not executing.. - by Aerotactics - 02.03.2014, 06:53
Re: [HELP] Derby code not executing.. - by AlonzoTorres - 02.03.2014, 09:47
Re: [HELP] Derby code not executing.. - by SyntaxQ - 02.03.2014, 10:11
AW: [HELP] Derby code not executing.. - by Nero_3D - 02.03.2014, 10:13
Re: [HELP] Derby code not executing.. - by AlonzoTorres - 02.03.2014, 10:14
Re: [HELP] Derby code not executing.. - by SyntaxQ - 02.03.2014, 10:20
Re: [HELP] Derby code not executing.. - by AlonzoTorres - 02.03.2014, 10:31

Forum Jump:


Users browsing this thread: 3 Guest(s)