error 033: array must be indexed (variable "PlayerInfo")
#1

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
Reply
#2

Send us the lines codes (46462, 46471) to help you
Reply
#3

46462-> if(PlayerInfo[playerid] == 34)
46471-> if(PlayerInfo[playerid] == 20)


Help me fast, please.
Reply
#4

See at your last command "hgate" and "hg" and replace it for:

PHP код:
if(strcmp(cmd"/hgate"false) == || strcmp(cmd"/hg"false) == 0)
{
if(
PlayerInfo[playerid][pMember] == 34 || PlayerInfo[playerid][pLeader] == 34)
{
if(
PlayerToPoint(10.0playerid, -542.4000334.00004.1000))
{
MoveObject(casa34, -542.4000334.0000, -1.70913);
SetTimer("Casa34" ,5000 ,false);
}
}
return 
1;
}
if(
strcmp(cmd"/yourcommand"false) == || strcmp(cmd"/yourcommand2"false) == 0)
{
if(
PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
if(
PlayerToPoint(10.0playerid1499.6000000,-699.4000200,96.5000000))
{
MoveObject(casa201499.6000000,-699.4000200,90.20000003);
SetTimer("Casa20" ,5000 ,false);
}
}
return 
1;

Change "yourcommand" and "yourcommand2" for your commands for that gate.
Reply
#5

Thank you very much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)