SA-MP Forums Archive
Car system 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: Car system help..? (/showthread.php?tid=464708)



Car system help..? - sansk - 18.09.2013

Код:
for(new i = 0; i < 4; i++) format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]);
errors:
Код:
C:\Users\Sander\Desktop\RGRP\gamemodes\PCRP.pwn(1688) : error 001: expected token: ";", but found "return"
C:\Users\Sander\Desktop\RGRP\gamemodes\PCRP.pwn(1688) : error 017: undefined symbol "i"



Re: Car system help..? - DanishHaq - 18.09.2013

Put it in parentheses.

pawn Код:
for(new i = 0; i < 4; i++)
{
    format(strLoc, sizeof(strLoc), "Loc%d", i);
    INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]);
}
PS: Not sure.


Re: Car system help..? - sansk - 18.09.2013

Stupid mistake.. xD Thank man.. :P +REP