Uso de GivePlayerGrana nгo seta money!
#1

Boa tarde galera!
Bom no meu server eu uso o GivePlayerGrana e GetPlayerGrana para evitar money hacks.
Porйm eu tenho um FS que eu necessito usar o GivePlayerGrana, mas fica dando undefined symbol, sendo que eu coloquei as definiзхes.
Ja tentei desta forma:
pawn Код:
stock GivePlayerGrana(playerid, quantia)
{
   GivePlayerMoney(playerid, quantia);
   SetPVarInt(playerid, "Grana", GetPlayerMoney(playerid));
}
tanto desta (como esta no meu GM)
pawn Код:
new Grana[MAX_PLAYERS];
forward AtualizarGrana();
public AtualizarGrana()
{
for(new i;i<MAX_PLAYERS;i++)
{
ResetPlayerMoney( i);
GivePlayerMoney(i, GetPlayerGrana( i));
}
}

stock GivePlayerGrana(playerid, ammount)return Grana[playerid] += ammount;
stock GetPlayerGrana(playerid)return Grana[playerid];
stock ResetPlayerGrana(playerid)return Grana[playerid] = 0;
Porem nenhum seta a grana do jogador, alguem poderia me ajudar?
Reply
#2

O seu gamemode й muca, eu usei ele por muito tempo e nunca encontrei bugs na parte da grana.
Reply
#3

Eu uso BR VIda Bandida.
Mas o problema nao й o game mode, o filterscript que nao seta a grana do cara.
Reply
#4

posta o fs '-'
Reply
#5

http://pastebin.com/Ue9AjfEK
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)