error 033: array must be indexed (variable "PlayerInfo") - 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: error 033: array must be indexed (variable "PlayerInfo") (
/showthread.php?tid=621331)
error 033: array must be indexed (variable "PlayerInfo") -
Arcada23 - 09.11.2016
C:\Users\Camelia\Downloads\Gaming RPG\gamemodes\BZone.pwn(46462) : error 033: array must be indexed (variable "PlayerInfo")
C:\Users\Camelia\Downloads\Gaming RPG\gamemodes\BZone.pwn(46471) : error 033: array must be indexed (variable "PlayerInfo")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Help me pls, fast
Respuesta: error 033: array must be indexed (variable "PlayerInfo") -
Ner0x96 - 09.11.2016
Send us the lines codes (46462, 46471) to help you
Re: error 033: array must be indexed (variable "PlayerInfo") -
Arcada23 - 09.11.2016
46462-> if(PlayerInfo[playerid] == 34)
46471-> if(PlayerInfo[playerid] == 20)
Help me fast, please.
Respuesta: error 033: array must be indexed (variable "PlayerInfo") -
Ner0x96 - 09.11.2016
See at your last command "hgate" and "hg" and replace it for:
PHP код:
if(strcmp(cmd, "/hgate", false) == 0 || strcmp(cmd, "/hg", false) == 0)
{
if(PlayerInfo[playerid][pMember] == 34 || PlayerInfo[playerid][pLeader] == 34)
{
if(PlayerToPoint(10.0, playerid, -542.4000, 334.0000, 4.1000))
{
MoveObject(casa34, -542.4000, 334.0000, -1.7091, 3);
SetTimer("Casa34" ,5000 ,false);
}
}
return 1;
}
if(strcmp(cmd, "/yourcommand", false) == 0 || strcmp(cmd, "/yourcommand2", false) == 0)
{
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
if(PlayerToPoint(10.0, playerid, 1499.6000000,-699.4000200,96.5000000))
{
MoveObject(casa20, 1499.6000000,-699.4000200,90.2000000, 3);
SetTimer("Casa20" ,5000 ,false);
}
}
return 1;
}
Change "yourcommand" and "yourcommand2" for your commands for that gate.
Re: error 033: array must be indexed (variable "PlayerInfo") -
Arcada23 - 09.11.2016
Thank you very much!