23.01.2012, 15:28
56324: error 035: argument type mismatch (argument 3)
56328: error 035: argument type mismatch (argument 3)
Line 56328 : strcat(admindialogstring,"{33AA33}%s - %s (On Duty)", admtext, sendername);
Line 56324 : strcat(admindialogstring,"{33AA33}%s - %s (OFF Duty)", admtext, sendername);
Admin Command in a Dialog BOX:
+ REP
56328: error 035: argument type mismatch (argument 3)
Line 56328 : strcat(admindialogstring,"{33AA33}%s - %s (On Duty)", admtext, sendername);
Line 56324 : strcat(admindialogstring,"{33AA33}%s - %s (OFF Duty)", admtext, sendername);
Admin Command in a Dialog BOX:
Код:
if (strcmp(cmd, "/admins", true) == 0) { new admindialogstring[1024]; if(IsPlayerConnected(playerid)) { strcat(admindialogstring,"{33AA33}Admini Online"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1338 || PlayerInfo[i][pTester] >= 1) { new admtext[64]; if(PlayerInfo[i][pAppearList] == 0) { if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Server Owner"; } else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Server Scripter"; } else if(PlayerInfo[i][pAdmin] == 6) { admtext = "Server Developer"; } else if(PlayerInfo[i][pAdmin] == 5) { admtext = "Main Administrator"; } else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Senior Administrator"; } else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Administrator"; } else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Global Moderator"; } else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderator"; } else if(PlayerInfo[i][pTester] == 3) { admtext = "Lead Tester"; } else if(PlayerInfo[i][pTester] == 2) { admtext = "Tester"; } else if(PlayerInfo[i][pTester] == 1) { admtext = "Trial Tester"; } else { admtext = "Unknown Rank"; } } GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerInfo[i][pAdminDuty] == 0 && PlayerInfo[i][pAppearList] == 0) { strcat(admindialogstring,"{33AA33}%s - %s (OFF Duty)", admtext, sendername); } else if(PlayerInfo[i][pAdminDuty] == 1 && PlayerInfo[i][pAppearList] == 0) { strcat(admindialogstring,"{33AA33}%s - %s (On Duty)", admtext, sendername); } ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{33AA33}Admins Online",admindialogstring,"Close",""); } } } } return 1; }