SA-MP Forums Archive
error - 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: error (/showthread.php?tid=371460)



error - Vizi - 23.08.2012

help me with this errors :S
LINE
pawn Код:
case 0: szStatus = "", format(szString, sizeof(szString), "#%d - %s \n", i, GetVehicleNameByModel(PlayerVehicles[playerid][i][pCarModel]);
ERROR
pawn Код:
error 001: expected token: ",", but found ";"



Re: error - Sandiel - 23.08.2012

pawn Код:
case 0:
{
      // Rest of the code here..
}
Should work.


Re: error - Lordzy - 23.08.2012

pawn Код:
case 0:
{
   szStatus = "", format(szString, sizeof(szString), "#%d - %s \n", i, GetVehicleNameByModel(PlayerVehicles[playerid][i][pCarModel]);
}
Might fix.