SA-MP Forums Archive
[Need h3lp] ;) - 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: [Need h3lp] ;) (/showthread.php?tid=111339)



[Need h3lp] ;) - xploit101 - 01.12.2009

Hi

code

does anyone had this error? if yes then help me to solve this

error 032: array index out of bounds (variable "JoinPed")




Re: [Need h3lp] ;) - Correlli - 01.12.2009

Read the pawn-lang.pdf or post your code so we can fix it for you.


Re: [Need h3lp] ;) - xploit101 - 01.12.2009

ERRORS
Quote:

(42075) : error 032: array index out of bounds (variable "JoinPed")
(42076) : error 032: array index out of bounds (variable "JoinPed")
(42077) : error 032: array index out of bounds (variable "JoinPed")
(4207 : error 032: array index out of bounds (variable "JoinPed")
(42079) : error 032: array index out of bounds (variable "JoinPed")

Code
Код:
(Line 42075) if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[44][0]; }

(Line 42076)  else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[45][0]; }

(Line 42077) else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[46][0]; }

(Line 42078) else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[47][0]; }

(Line 42079) else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[48][0]; }



solved ty for help


Re: [Need h3lp] ;) - dice7 - 01.12.2009

And how is that array declared ?