SA-MP Forums Archive
[ajuda] Moeda Secundaria Bugada - 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] Moeda Secundaria Bugada (/showthread.php?tid=163334)



[Rezolvido] Moeda Secundaria Bugada - Danilo_Grut - 27.07.2010

Gente depois de colocar a moeda secundaria deu um erro no pwn

Erro:
D:\Arquivos - Formatando\Sa-Mp\gamemodes\tlb.pwn(1317) : error: 017: undefined symbol "playermoney"
D:\Arquivos - Formatando\Sa-Mp\gamemodes\tlb.pwn(1317) : error: 017: undefined symbol "playermoney"
D:\Arquivos - Formatando\Sa-Mp\gamemodes\tlb.pwn(1317) : error: 017: undefined symbol "playermoney"
D:\Arquivos - Formatando\Sa-Mp\gamemodes\tlb.pwn(1317) : error fatal: 107: too many error messages on one line

Linhas:
public AtualizarGrana()
{
for(new i;i<MAX_PLAYERS;i++)
{
GivePlayerMoney(i, -GetPlayerMoney(i)); //nem essa pra ResetPlayerMoneyEx! nгo troque!
GivePlayerMoney(i, GetPlayerMoneyEx(i)); //nгo troque essa funзгo para GivePlayerMoneyEx!
}
}

stock GivePlayerMoneyEx(playerid, ammount)return playermoney[playerid] += ammount;
stock GetPlayerMoneyEx(playerid)return playermoney[playerid];
stock ResetPlayerMoneyEx(playerid)return playermoney[playerid] = 0;
}

Linhas Do Erro:

stock GivePlayerMoneyEx(playerid, ammount)return playermoney[playerid] += ammount;
stock GetPlayerMoneyEx(playerid)return playermoney[playerid];


Re: [ajuda] Moeda Secundaria Bugada - Gil_Henriquee - 27.07.2010

Tente adicionar no topo de seu GM

new playermoney[MAX_PLAYERS];


Caso nгo de poste exatamente o seu cуdigo.

Abraзos.