28.08.2015, 14:59
Quote:
At the end, none of the commands worked. The same happened to every of them. It says the vehicle has been spawned but the vehicle is not there.
|
Check limits:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tottalcar", cmdtext, true) == 0)
{
new
num
;
for (new v = GetVehiclePoolSize(); v >= 1; --v) {
if (GetVehicleModel(v) >= 400 && GetVehicleModel(v) <= 611) num++;
}
new
msg[128]
;
format(msg, sizeof(msg), "Total of %d vehicles server", num);
SendClientMessange(playerid, 0xFF0000FF, msg);
return true;
}
return false;
}