undefined simbol
#9

Quote:
Originally Posted by jlalt
Посмотреть сообщение
how player will have vehicle on his connect D: ?

after creating your vehicles add this code
PHP код:
native IsValidVehicle(vehicleid); // <- add this after a_samp include
for(new 0MAX_VEHICLESi++)
{
    if(!
IsValidVehicle(i)) continue;
    new 
rand random(3000) + 1500;
    new 
string[24];
    
format(stringsizeof(string), "{D20000}BG-{FFFFFF}%d"rand);
    
SetVehicleNumberPlate(istring);

MAX_VEHICLES is 2000 by default. If he only has like 200 cars, it will continue looping for 1800 times for no reason.
You should use GetVehiclePoolSize instead, especially since it's under OnGameModeInit, so there will be no empty loops.

Код:
for (new i, j = GetVehiclePoolSize(); i <= j; i++)
Reply


Messages In This Thread
undefined simbol - by Dejan12345 - 04.08.2016, 09:12
Re: undefined simbol - by AjaxM - 04.08.2016, 09:16
Re: undefined simbol - by Dejan12345 - 04.08.2016, 09:25
Re: undefined simbol - by AjaxM - 04.08.2016, 09:35
Re: undefined simbol - by Dejan12345 - 04.08.2016, 09:36
Re: undefined simbol - by FreAkeD - 04.08.2016, 09:42
Re: undefined simbol - by jlalt - 04.08.2016, 09:45
Re: undefined simbol - by Dejan12345 - 04.08.2016, 09:51
Re: undefined simbol - by Stinged - 04.08.2016, 10:14
Re: undefined simbol - by Sew_Sumi - 04.08.2016, 10:16

Forum Jump:


Users browsing this thread: 3 Guest(s)