C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 017: undefined symbol "PlayerInfo" C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : warning 215: expression has no effect C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 001: expected token: ";", but found "]" C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 029: invalid expression, assumed zero C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : fatal error 107: too many error messages on one line
PlayerInfo[playerid][pModel] = Peds[classid][0];
new PlayerInfo[MAX_PLAYERS][pInfo];
No tienes definido el :
Код:
new PlayerInfo[MAX_PLAYERS][pInfo]; |
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerRequestClass(playerid, classid) { new string[128]; PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0); PlayerInfo[playerid][pModel] = Peds[classid][0]; if(IsPlayerNPC(playerid)) { OnPlayerSpawn(playerid); SpawnPlayer(playerid); return 1; } if (gPlayerLogged[playerid] != 1) { ClearChatbox(playerid, 10); format(string, sizeof(string), "Bienvenido a SF-RP, Versiуn %s", SCRIPT_VERSION); SendClientMessage(playerid, COLOR_YELLOW, string); if(gPlayerAccount[playerid] == 1) { new loginmsg[256+1]; new loginname[MAX_PLAYER_NAME+1]; GetPlayerName(playerid,loginname,MAX_PLAYER_NAME); format(loginmsg,256,"Tu cuenta ya esta registrada!\nSolo tienes que insertar tu contraseсa\n\nNombre de Cuenta:\t%s\nContraseсa:",loginname); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Bienvenido",loginmsg,"Entrar","Salir"); SetPlayerCameraPos(playerid, -1993.0938,212.7325,111.8599); // cam inicio SetPlayerPos(playerid, -1953.0776,386.6941,112.4465); // cam inicio SetPlayerCameraLookAt(playerid, -1953.0776,386.6941,112.4465); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0); PlayerInfo[playerid][pModel] = Peds[classid][0]; return 1; } else if(gPlayerAccount[playerid] == 0) { new loginmsg[256+1]; new loginname[MAX_PLAYER_NAME+1]; GetPlayerName(playerid,loginname,MAX_PLAYER_NAME); format(loginmsg,256,"Para entrar tienes que registrar tu cuenta\nNombre de Cuenta:\t%s\nEscribe tu nueva contraseсa\nRecuerda usar Mayusculas en Nombre_Apellido",loginname); ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Bienvenido",loginmsg,"Registrar","Salir"); SetPlayerCameraPos(playerid, -1993.0938,212.7325,111.8599); // cam inicio SetPlayerPos(playerid, -1953.0776,386.6941,112.4465); // cam inicio SetPlayerCameraLookAt(playerid, -1953.0776,386.6941,112.4465); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0); PlayerInfo[playerid][pModel] = Peds[classid][0]; return 1; } } SetupPlayerForClassSelection(playerid); SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); // else SpawnPlayer(playerid); return 1; } public SetupPlayerForClassSelection(playerid) { new skin = GetPlayerSkin(playerid); PlayerInfo[playerid][pChar] = skin; }
C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 017: undefined symbol "PlayerInfo"
C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : warning 215: expression has no effect
C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 001: expected token: ";", but found "]"
C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : error 029: invalid expression, assumed zero
C:\Users\AngelusChesus\Downloads\Proyecto Pawno\Server convertido a 3.C\samp03csvr_win32\gamemodes\Xchel.pwn(326) : fatal error 107: too many error messages on one line
//Todo los errores se solucionaran resolviendo el 1ro
new PlayerInfo[MAX_PLAYERS][pInfo]; //pInfo en caso de que tengas enums xd
PD: si gustan no me hagan el comando, no quiero ser copy-paste solo quiero que me expliquen porque da esos errores y que debo hacer la proxima vez |
pawn Код:
pawn Код:
Bien dicho.. |