10.12.2014, 17:10
pawn Код:
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11493) : warning 217: loose indentation
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11493) : error 079: inconsistent return types (array & non-array)
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11497) : error 035: argument type mismatch (argument 2)
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11501) : error 017: undefined symbol "Nombre"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11502) : error 017: undefined symbol "Blanco"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11506) : error 079: inconsistent return types (array & non-array)
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11507) : warning 217: loose indentation
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11507) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11507 -- 11509) : warning 215: expression has no effect
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11509) : error 001: expected token: ";", but found "forward"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11509) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11509) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
pawn Код:
CMD:miembros(playerid,params[]) {
new string[128];
if(PI[playerid][Faccion] == 1){SendClientMessage(playerid,Rojo,"* No formas parte de una facciуn."); return 1;}
format(string, sizeof(string), "Faccion = %d", PI[playerid][Faccion]);
new faccion[30];
format(string, sizeof(string), "Miembros conectados de %s:", faccion);
SendClientMessage(playerid, COL_YELLOW, string);
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && i != INVALID_PLAYER_ID){
if(PI[i][Faccion] == PI[playerid][Faccion]){
format(string, sizeof(string), "- %s [ID: %d] (%d)", PI[i][Nombre], i, PI[i][pRango]);
SendClientMessage(playerid, Blanco, string);
}
}
}
return 1;
)
cambie algunas cosas como estan definidad en mi gamemode y mira