CMD:bug(params[]) { new playerid, bugtype; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty."); if(sscanf(params, "ss[128]", bugtype, params)) { SendClientMessage(playerid, COLOR_WHITE, "** [Usage]:/bug [type] [text]"); SendClientMessage(playerid, COLOR_WHITE, "Valid types are: Low, Mid, High"); return 1; } else if(!strcmp(bugtype, "low", true)) --- line bug comes from { if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128."); { new File: file = fopen("bugs.cfg", io_append), string[128]; format(string, sizeof(string), "%s\r\n", params); fwrite(file, string); fclose(file); } } return 1; }
C:\Users\Michael\Desktop\A-RP\gamemodes\A-RP.pwn(21616) : error 035: argument type mismatch (argument 1)
else
{
if(!strcmp(bugtype, "low", true)) --- line bug comes from
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
{
new File: file = fopen("bugs.cfg", io_append), string[128];
format(string, sizeof(string), "%s\r\n", params);
fwrite(file, string);
fclose(file);
}
}
}
new playerid, bugtype; |
new playerid, bugtype[64]; |
if(!strcmp(bugtype, "low", true) |
else
{
if (strcmp("/buygod", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
{
new File: file = fopen("bugs.cfg", io_append), string[128];
format(string, sizeof(string), "%s\r\n", params);
fwrite(file, string);
fclose(file);
}
}
}