01.02.2011, 12:36
D:\DOC ILYASS\SAMP Server\gamemodes\LSGW.pwn(200) : error 017: undefined symbol "sscanf"
D:\DOC ILYASS\SAMP Server\gamemodes\LSGW.pwn(199) : warning 203: symbol is never used: "cash"
D:\DOC ILYASS\SAMP Server\gamemodes\LSGW.pwn(199 -- 210) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
D:\DOC ILYASS\SAMP Server\gamemodes\LSGW.pwn(199) : warning 203: symbol is never used: "cash"
D:\DOC ILYASS\SAMP Server\gamemodes\LSGW.pwn(199 -- 210) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
if (strcmp("/givemoney", cmdtext, true, 10) == 3) { new giveplayerid, cash; if(sscanf(params, "ud", giveplayerid, cash)) return SendClientMessage(playerid, 0x800000FF, "Usage: /givemoney [playerid] [money]"); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0x800000FF, "Bad Player ID"); if(giveplayerid == playerid) return SendClientMessage(playerid, 0x800000FF, "You can't give the money to yourself, try /givemoney [playerid] [money]"); return 0; } if (strcmp("/weapons", cmdtext, true, 10 == 3) { ShowPlayerDialog(playerid, Weapons, DIALOG_STYLE_LIST, "Weapons", "Deagle Price :2000$ \n Sawn-Off Price :1200$ \n Uzi Price :720$ \n M4 :2000$", "Buy", "Cancel"); } return 0; }