if(strcmp(InfoOrg[org][Lider],NGM,false)==0 && strcmp(InfoOrg[org][SubLider],NGM,false)==0 && InfoOrg[org][Membro1],NGM,false)==0 && InfoOrg[org][Membro2],NGM,false)==0 && InfoOrg[org][Membro3],NGM,false)==0 && InfoOrg[org][Membro4],NGM,false)==0 && InfoOrg[org][Membro5],NGM,false)==0 && InfoOrg[org][Membro6],NGM,false)==0 && InfoOrg[org][Membro7],NGM,false)==0 && InfoOrg[org][Membro8],NGM,false)==0)
C:\Documents and Settings\Pedro Miranda\Desktop\Script\gamemodes\Teste.pwn(328) : error 033: array must be indexed (variable "InfoOrg") C:\Documents and Settings\Pedro Miranda\Desktop\Script\gamemodes\Teste.pwn(328) : error 029: invalid expression, assumed zero C:\Documents and Settings\Pedro Miranda\Desktop\Script\gamemodes\Teste.pwn(328) : error 033: array must be indexed (variable "InfoOrg") C:\Documents and Settings\Pedro Miranda\Desktop\Script\gamemodes\Teste.pwn(328) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
#define NGM "Ninguem"
#define MAX_ORGS 21
enum OrgInfo
{
Lider,
SubLider,
Membro1,
Membro2,
Membro3,
Membro4,
Membro5,
Membro6,
Membro7,
Membro8
};
new InfoOrg[ MAX_ORGS ][ OrgInfo ][ MAX_PLAYER_NAME ];
enum OrgInfo
{
Lider[ MAX_PLAYER_NAME ],
SubLider[ MAX_PLAYER_NAME ],
Membro1[ MAX_PLAYER_NAME ],
Membro2[ MAX_PLAYER_NAME ],
Membro3[ MAX_PLAYER_NAME ],
Membro4[ MAX_PLAYER_NAME ],
Membro5[ MAX_PLAYER_NAME ],
Membro6[ MAX_PLAYER_NAME ],
Membro7[ MAX_PLAYER_NAME ],
Membro8[ MAX_PLAYER_NAME ]
};
new InfoOrg[ MAX_ORGS ][ OrgInfo ];
if(strcmp(InfoOrg[org][Lider],false)==0 && strcmp(InfoOrg[org][SubLider],false)==0 && InfoOrg[org][Membro1],false)==0 && InfoOrg[org][Membro2],false)==0 && InfoOrg[org][Membro3],false)==0 && InfoOrg[org][Membro4],false)==0 && InfoOrg[org][Membro5],false)==0 && InfoOrg[org][Membro6],false)==0 && InfoOrg[org][Membro7],false)==0 && InfoOrg[org][Membro8],false)==0)
#define NGM "Ninguem"
Eu coloquei o topo do gm no post ali amigo
pawn Код:
|
strcmp(InfoOrg[org][Lider],NGM,false)==0 && strcmp(InfoOrg[org][SubLider],NGM,false)==0
&& InfoOrg[org][Membro1],NGM,false)==0 && InfoOrg[org][Membro2],NGM,false)==0 && InfoOrg[org][Membro3],NGM,false)==0 && InfoOrg[org][Membro4],NGM,false)==0 && InfoOrg[org][Membro5],NGM,false)==0 && InfoOrg[org][Membro6],NGM,false)==0 && InfoOrg[org][Membro7],NGM,false)==0 && InfoOrg[org][Membro8],NGM,false)==0)