help [+REP]
#1

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
Reply
#2

Show vInfo enum and fix the hex color { .
Reply
#3

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)