14.08.2012, 09:59
how to fix this error ?
Line:
pawn Код:
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6828) : error 028: invalid subscript (not an array or too many subscripts): "exp"
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6828) : warning 215: expression has no effect
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6828) : error 001: expected token: ";", but found "]"
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6828) : error 029: invalid expression, assumed zero
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6828) : fatal error 107: too many error messages on one line
pawn Код:
new expstring[128];
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
new expamount = nxtlevel*levelexp;
format(expstring, sizeof(expstring), "%d / %d",PlayerInfo[playerid][pExp],expamount);
TextDrawSetString(exp[playerid], expstring); // line
TextDrawShowForPlayer(playerid, exp[playerid]);