HELp PLEASEE I NEED IT !!! REPP + !
#1

Hi!!
I have this error look

pawn Код:
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6535) : error 028: invalid subscript (not an array or too many subscripts): "exp"
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6535) : error 001: expected token: ";", but found "]"
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6535) : error 029: invalid expression, assumed zero
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(6535) : fatal error 107: too many error messages on one line
Line

pawn Код:
new string[128];
        new nxtlevel = PlayerInfo[playerid][pLevel]+1;
        new expamount = nxtlevel*levelexp;
        format(string, sizeof(string), "%d / %d",PlayerInfo[playerid][pExp],expamount);
        TextDrawSetString(exp[playerid], string);  // <------------ line 6535
        TextDrawShowForPlayer(playerid, exp[playerid]);
Reply
#2

Change new string[128] to this:

pawn Код:
new Text:string[128];
Reply
#3

Ohhh Same :S
PLease helppppppp !REPP ++++++++
Reply
#4

make sure you have defined exp Global for all Players

pawn Код:
new exp[MAX_PLAYERS];
// for TextDraw
new Text:exp[MAX_PLAYERS];
Reply
#5

I have defined :S
Reply
#6

How you created the TextDraws for all players ?
I dont see in your code any errors
Reply
#7

the is the textdraw
pawn Код:
exp[playerid] = TextDrawCreate(500.000000, 100.000000, "_");
    TextDrawBackgroundColor(exp[playerid], 255);
    TextDrawFont(exp[playerid], 2);
    TextDrawLetterSize(exp[playerid], 0.500000, 1.000000);
    TextDrawColor(exp[playerid], -1);
    TextDrawSetOutline(exp[playerid], 0);
    TextDrawColor(exp[playerid],COLOR_RED);
    TextDrawSetProportional(exp[playerid], 1);
    TextDrawSetShadow(exp[playerid], 1);
and i have
pawn Код:
new Text:exp[MAX_PLAYERS];
Reply
#8

Try this:
pawn Код:
new Text:exp[MAX_PLAYERS][25]; // Not sure
Reply
#9

No :S
Bro this textdraw for exp system i have take from another gamemode.But i take all the things :S
Sorry for bad english
Reply
#10

Hmm sure you showd us ur correct lines ?
if so then i dont got any ideas, sorry

// EDIT:
pawn Код:
PlayerInfo[playerid][pExp]
is defined ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)