13.02.2009, 22:15
Can you please help me im at a total lost! thank you!
Error :
Код:
dcmd_givecash(playerid, params[]) { new giveplayerid; new amount; if (sscanf(params, "dd", giveplayerid, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash [playerid/partname] [amount]"); <--- 1288 here! else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); else if (amount > GetPlayerMoney(playerid)) SendClientMessage(playerid, 0xFF0000AA, "Insufficient Funds"); else { GivePlayerMoney(giveplayerid, amount); GivePlayerMoney(playerid, 0 - amount); SendClientMessage(playerid, 0x00FF00AA, "Money sent"); SendClientMessage(giveplayerid, 0x00FF00AA, "Money recieved"); } return 1; }
Код:
C:\Documents and Settings\Kody\Desktop\SAMP\gamemodes\CT.pwn(1288) : error 017: undefined symbol "sscanf"