SA-MP Forums Archive
[/TRACKCAR] Wierd Bug? Please Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [/TRACKCAR] Wierd Bug? Please Help (/showthread.php?tid=309164)



[/TRACKCAR] Wierd Bug? Please Help - Jing_Chan - 06.01.2012

Quote:

CMD:trackcar(playerid, params[])
{
new vstring[1024];
for(new i; i < MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);

else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);

else
format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
}
ShowPlayerDialog(playerid, TRACKCAR, DIALOG_STYLE_LIST, "OnStar Vehicle GPS Tracking", vstring, "Track", "Cancel");
return 1;
}

It shows 30 car slots instead of 10? whats wrong