31.07.2015, 13:30
I really have no idea how to fix this.
This is my error:
This is my command
This is my error:
Код:
error 035: argument type mismatch (argument 1)
Код:
CMD:givemoney(playerid, params) { new id, idname[MAX_PLAYERS], string[256], amount; GetPlayerName(id, idname, sizeof(idname)); if(IsPlayerConnected(id)) { if(sscanf(params, "ui", id,amount)) return SendClientMessage(playerid, COLOR_GREY, "Syntax: {FFFFFF}/givemoney [playerid] [money]"); GivePlayerMoney(id, amount); format(string, sizeof(string), "AdmCmd: You have given %s %d$.", idname, amount); SendClientMessage(playerid, COLOR_ADMIN, string); } else return SendClientMessage(playerid, COLOR_LOL, "Acel jucator nu este connectat."); return 1; }