[Ajuda] erro OnPlayerStatsUpdate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] erro OnPlayerStatsUpdate (
/showthread.php?tid=595866)
erro OnPlayerStatsUpdate -
Lucasbns - 08.12.2015
Bom como sou super novo e nгo sei de muita coisa de gm queria pedir ajuda a como resolve o erro
error 017: undefined symbol "OnPlayerStatsUpdate"
eu achei esse pacote iniciante resolvi baixar mas nгo entendo o erro pois sou novato.
codes
Код:
dcmd_pacoteiniciante(playerid, params[])
{
if(Player[playerid][pPacote] != 0)
return SendClientMessage(playerid,-1,"{ff0000}[ERRO]: Voc? j? pegou seu Pacote Iniciante.");
if(Player[playerid][pConnectTime] < 24*3600)
return SendClientMessage(playerid,-1,"{ff0000}[ERRO]: Voc? precisa ter pelo menos 24 horas jogadas para ganhar seu Pacote Iniciante.");
if(Player[playerid][pConnectTime] > 48*3600)
return SendClientMessage(playerid,-1,"{ff0000}[ERRO]: Voc? j? ? jogador veterano. N?o pode ganhar Pacote Iniciante.");
GivePlayerGP(playerid,200000);
Player[playerid][pLevel] += 3;
Player[playerid][gPupgrade] += 6;
Player[playerid][pDetSkill] += 150;
Player[playerid][pDrugsSkill] += 150;
SetPlayerScore(playerid, Player[playerid][pLevel]);
Player[playerid][pPacote] = 1;
format(thestring,sizeof(thestring),"{4290fe}[INFO]: Sucesso! Voc? pegou seu Pacote Iniciante! Agora voc? ? level: %d e tem %d pontos de atualiza??o",Player[playerid][pLevel], Player[playerid][gPupgrade]);
SendClientMessage(playerid,-1,thestring);
OnPlayerStatsUpdate(playerid);
format(thestring,sizeof(thestring),"O Jogador %s pegou seu pacote de iniciante.",Player[playerid][pName]);
WriteLog("Iniciante",thestring);
return 1;
}
Re: erro OnPlayerStatsUpdate -
CZ - 09.12.2015
OnPlayerUpdate
Re: erro OnPlayerStatsUpdate -
EditPawn - 09.12.2015
OnPlayerStatsUpdate(playerid) deve ser alguma callback criada chamada para pegar o status do jogador. Vocк deve incluir essa callback do cуdigo onde encontrou para resolver o erro ou remover a linha na qual apresenta o erro pois se nгo for ъtil ao que vocк pretende usar entгo nгo precisarб dela.
Re: erro OnPlayerStatsUpdate -
Lucasbns - 09.12.2015
obg seus gostozos