13.10.2013, 13:26
Hi, i'm a beginner scripter.
i need help with my new /pay cmd, not working.
the code is:
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?
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);