Quote from: NewK on Jun 29, 2018, 10:56 AMThe latest version is version 30 not 22. Make sure you download it from hereIt remains the same
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: NewK on Jun 29, 2018, 10:56 AMThe latest version is version 30 not 22. Make sure you download it from hereIt remains the same
Quote from: BeckzyBoi on Jun 29, 2018, 10:03 AMas I said I just tried It! GetObjectCount is working even, btw GetVehicleCount isn'tQuote from: MadMax on Jun 29, 2018, 09:56 AMQuote from: rww on Jun 29, 2018, 09:32 AMTry to remove some commands and test it, if it still doesn't work, try with another commands. Error in another command, not here.It's not working I've tried
Remove all commands expect "vehicles" and then try. If it works then it's one of your other commands. You'll then have to remove one-by-one to debug it.
Quote from: rww on Jun 29, 2018, 09:32 AMTry to remove some commands and test it, if it still doesn't work, try with another commands. Error in another command, not here.It's not working I've tried
Quote from: rww on Jun 29, 2018, 09:27 AMIn your posted code is everything okey, the mistake must be in another line.Same Error
Btw you can do this that.function onPlayerCommand( player, cmd, text )
{
try
{
cmd = cmd.tolower();
if (cmd == "vehicles") ClientMessage("Veh Count: "+GetVehicleCount(),player,255,255,0);
}
catch(e) print( "OnPlayerCommand Error: " + e );
}
Quote from: rww on Jun 29, 2018, 08:47 AMRemember to check your version. It works on 04rel003 btw doesn't works on 04rel006.Quote from: MadMax on Jun 29, 2018, 08:41 AMUnable to use GetVehicleCount(), Using the same code mentioned in the wiki.else if (c == "countveh") print("Vehs: "+GetVehicleCount());
output: 317, so correcty. On wiki also script looks okey.
Kicking connecting player at ID 0, version is 67350 (current 67400), using older version.
Kicking connecting player at ID 0, version is 67350 (current 67400), using older version.
https://forum.vc-mp.org/?topic=5953.msg41256#new