SA-MP Forums Archive
expected token: ";", but found "]" - 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: expected token: ";", but found "]" (/showthread.php?tid=579805)



expected token: ";", but found "]" - simo0000 - 30.06.2015

pawn Код:
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
pawn Код:
GetPlayerWeaponData(playerid, i, szGun[i][0], szGun[i][1]);
plz help


Re: expected token: ";", but found "]" - MohammedZ - 30.06.2015

GetPlayerWeaponData(playerid, szGun[i][0], szGun[i][1]);
either GetPlayerWeaponData(i, szGun[i][0], szGun[i][1]);
I think so if this helped +rep