SA-MP Forums Archive
help [+REP] - 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: help [+REP] (/showthread.php?tid=575059)



help [+REP] - simo0000 - 23.05.2015

i'm working in my own mysql private vehicles system
i got some errors
pawn Код:
error 028: invalid subscript (not an array or too many subscripts): "vInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
pawn Код:
if(strcmp(name, vInfo[i][vOwner], true)) return SendClientMessage(playerid, -1, "FF0000}ERROR: {FFFFFF}This Car Isn't Owned By You");
sorry for my bad english


Re: help [+REP] - Evocator - 23.05.2015

Show vInfo enum and fix the hex color { .


Re : help [+REP] - simo0000 - 23.05.2015

fixed
i use 'vInfo' instead of 'VehicleInfo'
this is the enum
new VehicleInfo[MAX_CARS][vInfo];


Re: help [+REP] - Konstantinos - 23.05.2015

The problem is that he used "vInfo" which is the name of the enum which used for the array instead of the actual name of the array.

It should be swapped:
pawn Код:
enum e_vInfo
{
    // code..
};
new vInfo[MAX_VEHICLES][e_vInfo];
EDIT: Nevermind, you got it fixed.