08.12.2015, 22:35
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
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;
}

