Quote:
Originally Posted by lulo356
pawn Код:
CMD:ticket(playerid, params[]){ { //this was missing.. new text[128]; if(!sscanf(params, "s[128]", text)){ if(AdminCheck(playerid)) return SendClientMessage(playerid, 0xFA8072FF, "Admins cannot submit tickets"); //delete if if you want admins to be able to submit tickets if(SubmittedTicket[playerid] != -1) return SendClientMessage(playerid, 0xFA8072FF, "You alreaddy have a ticket sent out"); if(!AdminsOnDuty()) return SendClientMessage(playerid, NoDutyColor, NoDutyMessage);
SubmittedTicket[playerid] = playerid; SendClientMessage(playerid, 0xFA8072FF, "** Ticket has been sent to on duty admins");
//format message to admins new aMessage[128]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(aMessage, sizeof(aMessage), "** Incoming ticket from %s, Use /claim %i to claim", pName, playerid); SendClientMessageToOnDutyAdmins(aMessage);
TicketInfo[playerid][claimed] = 0; TicketInfo[playerid][query] = text; TicketInfo[playerid][player] = playerid; TicketInfo[playerid][helper] = -1; } else { return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /ticket [question]"); }
|
it is on the line above the line you added, does it make a difference?