/pay Command not working
#1

Hi, i'm a beginner scripter.
i need help with my new /pay cmd, not working.
the code is:
pawn Код:
if(!strcmp(cmdtext, "/p ", true, 2) && (cmdtext[2] == '\0' || cmdtext[2] == ' '))// /p parancs, fizetйs
    {
    if(!cmdtext[2] || !cmdtext[3]) return SendClientMessage(playerid, 0xFF0000FF, "Fizetйs. Hasznбlat: /p [ID] [цsszeg]");
 GivePlayerMoney(playerid,-cmdtext[4]);
 GivePlayerMoney(cmdtext[3],cmdtext[4]);
 new fizetseg[128];
 format(fizetseg,128,"Adtбl %d FT-t %d-nek", cmdtext[4], cmdtext[2]);
 SendClientMessage(playerid,COLOR_WHITE,fizetseg);
The problem is, that it gets -32 from my money, and it types : Adtбl 32FT-t 32-nek ( You gave 32ft to 32).. if i type /p 8 1000, it says that too,. anyone help?
Reply


Messages In This Thread
/pay Command not working - by Syox - 13.10.2013, 13:26
Re: /pay Command not working - by edzis84 - 13.10.2013, 13:50
Re: /pay Command not working - by Syox - 13.10.2013, 13:58
Re: /pay Command not working - by edzis84 - 13.10.2013, 14:01
Re: /pay Command not working - by PT - 13.10.2013, 14:10
Re: /pay Command not working - by Aarab - 13.10.2013, 16:30
Re: /pay Command not working - by Konstantinos - 13.10.2013, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)