SA-MP Forums Archive
Pawno error! HELP! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno error! HELP! (/showthread.php?tid=172759)



Pawno error! HELP! - BlacK_PT - 31.08.2010

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);



Re: Pawno error! HELP! - Grim_ - 31.08.2010

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.


Re: Pawno error! HELP! - BlacK_PT - 31.08.2010

Wow, thanks