Pawno error! HELP!
#1

I was making a new /changename command and I got this error:

Код:
error 033: array must be indexed (variable "PName")
I think the error might be here, I dont know...

Код:
new PName[MAX_PLAYER_NAME];
strmid(PlayerInfo[playerid][PName], result, 0, strlen(result), 255);
Reply
#2

That's wrong, do this:
pawn Код:
new PName[MAX_PLAYER_NAME];
strmid(PName, result, 0, strlen(result), 255);
[This forum requires that you wait 120 seconds between posts. Please try again in 59 seconds.] - I will not rage this time, I will learn to love to be patient.
Reply
#3

Wow, thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)