Array Problem - Error 006
#1

PlayerInfo[Player][pDivision] = inputtext;

Why isn't this working (keep in mind Player is defined)?
Reply
#2

how did you create the Array with the variables?
Reply
#3

What?....
Reply
#4

You cannot create Array in variable like PlayerInfo.
Reply
#5

So how do I do this then? Don't I use strvl or something?
I fixed it.
strval(inputtext);
Reply
#6

When creating the variable using enum, then you need to specify it as an array.

So in the enum where you specify pDivision, add it as something like this, depending on the maximum length of that string you're storing in it.

pawn Код:
pDivision[100],
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)