SA-MP Forums Archive
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)
+--- Thread: Help? (/showthread.php?tid=362724)



Help? - N0FeaR - 25.07.2012

[code]C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(10086) : error 032: array index out of bounds (variable "PlayerInfo")[/pawn]

pawn Код:
PlayerInfo[UsingDrugs][playerid] = 0;



Re: Help? - FireCat - 25.07.2012

PInfo[UsingDrugs][playerid] = 0;
Probably that?


Re: Help? - CentyPoo - 25.07.2012

Use this:
pawn Код:
PInfo[playerid][UsingDrugs] = 0;



Re: Help? - N0FeaR - 25.07.2012

Quote:
Originally Posted by FireCat
Посмотреть сообщение
PInfo[UsingDrugs][playerid] = 0;
Probably that?
Nope.


Re: Help? - Glint - 25.07.2012

PlayerInfo[playerid][UsingDrugs] = 0;