05.07.2015, 13:09
(
Последний раз редактировалось NNek; 06.07.2015 в 04:30.
)
error 035: argument type mismatch (argument 1)
if i compile the Script this is will be show?
if i compile the Script this is will be show?
dcmd_crimes(playerid, params[]) { #pragma unused params if (PlayerInfo[playerid][pSpawn] == 1){ if (PlayerInfo[playerid][pTeam] == TEAM_CIVILIAN){ new string[256],Wanted[128],idx,giveplayerid,tmp[256]; tmp = strtok(params, idx); if(!strlen(tmp)) { //SendClientMessage(playerid, COLOR_ERROR, "USAGE: /crimes (Name/Id)."); //return 1; giveplayerid = playerid; }else{ if(!isNumeric(tmp)) { giveplayerid = ReturnUser(playerid, tmp); if(giveplayerid == INVALID_PLAYER_ID) { return 1; } } else { giveplayerid = strval(tmp); if(!IsPlayerConnected(giveplayerid)) { format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid); SendClientMessage(playerid, COLOR_ERROR, string); return 1; } } } switch (PlayerInfo[giveplayerid][pWantedLevel]) { case 0:format(string, sizeof(string), "Wated Level %d - Innocent Civilian",PlayerInfo[giveplayerid][pWantedLevel]); case 1..5:format(string, sizeof(string), "~y~Wated Level %d",PlayerInfo[giveplayerid][pWantedLevel]); case 6..10:format(string, sizeof(string), "~r~Wated Level %d",PlayerInfo[giveplayerid][pWantedLevel]); } strmid(Wanted, string, 0, strlen(string), 256); if(PlayerCrimeListRowNo[giveplayerid] > 0) { TextDrawHideForPlayer(playerid, Menu_Title[playerid]); TextDrawHideForPlayer(playerid, Menu_Stats[playerid]); TextDrawHideForPlayer(playerid, Menu_End[playerid]); for(new r = 0; r < MAX_TEXTDRAW_ROWS; r++) { TextDrawHideForPlayer(playerid, Menu_Column1[playerid][r]); TextDrawHideForPlayer(playerid, Menu_Column2[playerid][r]); } ShowTextDrawMenu(playerid, TD_MENU_INFO,"~g~Crime History", PlayerCrimeListRowNo[giveplayerid] + 5, 0); //ShowTextDrawMenuItems(playerid, 0, " ", " ", " ",0); format(string, sizeof(string), "%s (%d)~n~%s",PlayerInfo[giveplayerid][pName],giveplayerid,Wanted); ShowTextDrawMenuItems(playerid, 0, string, " ", " ",0); ShowTextDrawMenuItems(playerid, 1, " ", " ", " ",0); ShowTextDrawMenuItems(playerid, 2, " ", " ", " ",0); ShowTextDrawMenuItems(playerid, 3, " ", " ", " ",0); //ShowTextDrawMenuItems(playerid, 3, " ", Line[0], LineEx[0],0); ShowTextDrawMenuItems(playerid, 4, " ", PlayerCrimeList[playerid][1], " ",0); ShowTextDrawMenuItems(playerid, 5, " ", PlayerCrimeList[playerid][2], " ",0); ShowTextDrawMenuItems(playerid, 6, " ", PlayerCrimeList[playerid][3], " ",0); ShowTextDrawMenuItems(playerid, 7, " ", PlayerCrimeList[playerid][4], " ",0); ShowTextDrawMenuItems(playerid, 8, " ", PlayerCrimeList[playerid][5], " ",0); ShowTextDrawMenuItems(playerid, 9, " ", PlayerCrimeList[playerid][6], " ",0); ShowTextDrawMenuItems(playerid, 10, " ", PlayerCrimeList[playerid][7], " ",0); ShowTextDrawMenuItems(playerid, 11, " ", PlayerCrimeList[playerid][8], " ",0); ShowTextDrawMenuItems(playerid, 12, " ", PlayerCrimeList[playerid][9], " ",0); }else{ format(string, sizeof(string), "No Crimes Committed By %s (%d).",PlayerInfo[giveplayerid][pName],giveplayerid); SendClientMessage(playerid, COLOR_ERROR, string); } }else{ SendClientMessage(playerid, COLOR_ERROR, "Only Civilians Can Use This Command."); } }else{ SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead."); } return 1; } |
C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(12892) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(14373) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(14456) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(14564) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(15944) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16033) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16106) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16180) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16270) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16377) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16444) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16500) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16552) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16636) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16719) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16802) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16884) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(16974) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17064) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17147) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17232) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(1730 : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17377) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17454) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17660) : error 035: argument type mismatch (argument 1) C:\Users\server\Desktop\(Pink_Panther's Cops and Robbers)\gamemodes\cnr.pwn(17767) : error 035: argument type mismatch (argument 1) |
giveplayerid = ReturnUser(playerid, tmp); |