Jump to content
  • 0

pomoc GivePlayerMoney


Stellet

Dotaz

Ahoj, udělal jsem si příkaz na přidání peněz hráči. jenže je nějáká chyba a nevím kde

CMD:gmoney(playerid,params[])
{
    new id,mm,duvod;
if(PlayerInfo[playerid][pRefunder] <= 0) return SendClientMessage(playerid,-1,"Tento příkaz nemůžeš používat!");
else if(sscanf(params,"uds",id,mm,duvod)) return SendClientMessage(playerid,-1,"Použití: /gmoney [id] [money] [důvod]");
else
{
   new str[180];
   format(str, sizeof(str), "Administrátor %s dal hráči %s %d$ [Důvod: %s]", GetName(playerid), GetName(id), mm, duvod);
   SendClientMessageToAll(B_CERVENA,str);
   GivePlayerMoney(id,mm);
}
return 1;
}
Jak to vypadá ve hře:
sa-mp-139.jpg
 
Neukáže to jméno ID + nepřičte to money a dal jsem jen 10$, furt to ukazuje 115.
Edited by FeedBoss
Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...