Consulta -
Jeree10 - 03.08.2014
Hola gente bueno estoy creando algunos comando y quisiera saber si estбn bien que digamos ya que por ahн alguno de ustedes le encuentra algъn error o algo que este demбs, y tambien nose porque me sale este error:
Код:
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(7183) : error 017: undefined symbol "OnPlayerSavedStats"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Acб dejo el cmd diganme si esta bien o mal el cmd:
Код:
CMD:subirnivel(playerid, params[])
{
new horasjugando = Informacion[playerid][pExperiencia];
if(Informacion[playerid][pNivel] >= 0)
{
if( horasjugando >= 200 && horasjugando < 300 ) { Informacion[playerid][pNivel] = 2; }
else if( horasjugando >= 300 && horasjugando < 400 ) { Informacion[playerid][pNivel] = 3; }
else if( horasjugando >= 400 && horasjugando < 500 ) { Informacion[playerid][pNivel] = 4; }
else if( horasjugando >= 500 && horasjugando < 600 ) { Informacion[playerid][pNivel] = 5; }
else if( horasjugando >= 600 && horasjugando < 700 ) { Informacion[playerid][pNivel] = 6; }
else if( horasjugando >= 700 && horasjugando < 800 ) { Informacion[playerid][pNivel] = 7; }
else if( horasjugando >= 800 && horasjugando < 900 ) { Informacion[playerid][pNivel] = 8; }
else if( horasjugando >= 900 && horasjugando < 1000 ) { Informacion[playerid][pNivel] = 9; }
else if( horasjugando >= 1000 && horasjugando < 1100 ) { Informacion[playerid][pNivel] = 10; }
else if( horasjugando >= 1100) { Informacion[playerid][pNivel] = 11; }
else
{
SendClientMessage(playerid, -1, "No tienes suficiente experiencia para subir de nivel");
return 1;
}
}
new infostring[128];
format(infostring, sizeof(infostring), "~g~~h~Nivel %d!", Informacion[playerid][pNivel]);
GameTextForPlayer(playerid, infostring, 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
Informacion[playerid][pExperiencia] = horasjugando;
OnPlayerSavedStats(playerid);
return 1;
}
Respuesta: Consulta -
Zume - 03.08.2014
Traduce el error y dirб " sнmbolo sin definir "OnPlayerSavedStats" ". Usando la lуgica podrнas buscar si "OnPlayerSavedStats" estб definido y al notar que no lo estб determinarнas que debes definirlo.
Te pongo esto porque yo no sй que es "OnPlayerSavedStats", si lo supiera te lo darнa.