Jump to content
  • 0

NU POT TRECE UN FS DIN GIVEPLAYERMONEY IN GIVEPLAYERCASH


StrypS

Question

Nu pot trece un filterscript din giveplayermoney in giveplayercash .

AM INCERCAT:


stock GivePlayerCash(playerid, money)
{
    GivePlayerMoney(playerid,money);
    return 1;
}

 

#define GivePlayerMoney GivePlayerCash;

unitive Giveplayercash

Sa copilat ok, fara erori, dar tot nu merge, nu stiu ce sa mai incerc., eu nu doresc sa il adaug in gm..

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Daca vrei sa folosesti o functie din gm in fs astfel incat sa functioneze asa cum ar trebui sa folosesti CallRemoteFunction("GivePlayerCash", "ii", playerid, money);

Unde money = suma (poate  sa fie si un numar nu doar o variabila

Si nu defini in fs acea functie

Link to comment
Share on other sites

  • 0
Acum 7 minute, StrypS a spus:

tot nu merge, acum nici nu creste nici nu scade, alta solutie??

 

Stai stai, functia din gm GivePlayerCash este stock sau public? Pentru ca am uitat compelt de acest aspect

Ca sa functioneze cu CallRemoteFunction functia GivePlayerCash trebuie sa fie public + forward

Cealalta solutie este sa integrezi fs in gm

Link to comment
Share on other sites

  • 0
Acum 6 minute, StrypS a spus:

este stock in, gm dar faza nasoala este ca nu ma pricem sa il instalez in gm

forward GivePlayerCash(playerid, money);

public GivePlayerCash(playerid, money)

Inloc de stock GivePlayerCash(playerid, money)

Inlocuiesti numa acest aspect, nu si alte parti

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.