01.09.2015, 16:40
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26330 -- 26332) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : error 001: expected token: ";", but found "."
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : fatal error 107: too many error messages on one line
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : error 001: expected token: ";", but found "."
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26332) : fatal error 107: too many error messages on one line
Код:
//========================================[CMD:TICKET]========================================================= CMD:ticket(playerid, params[]) { new amendat, giveplayerid, string[256], sendername[MAX_PLAYER_NAME], giveplayer, moneys, result; if(sscanf(params, "u", amendat)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ticket[PlayerID/PartOfName]"); if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " Nu esti politist!"); return 1; } if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREY, " Nu esti la datorie!"); return 1; } new amenda [1000]; ShowPlayerDialog(playerid, 769, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza amenda:", "Motiv\tPret\tPermis\n\ strcat(amenda, "1. Folosire telefon la volan\t5.000$\tNone\n\"); strcat(amenda, "2. Condus fara centura\t10.000$\tNone\n\"); strcat(amenda, "3.Condus neregulamentar\t25.000$\tConfiscare\n\"); strcat(amenda, "4.Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n\"); strcat(amenda, "5.Conducerea vehiculelor cu roti sparte\t$10.000$\tNone\n\"); strcat(amenda, "6.Folosire NOS\t10.000$\tConfiscare\n\"); strcat(amenda, "7.Folosire Hidraulice\t10.000$\tConfiscare\n\"); strcat(amenda, "8.Faruri stinse (dupa ora 21:00)\t10.000$\tNone\n\"); strcat(amenda, "9.Condus sub influenta alcoolului\t20.000$\tConfiscare\n\"); strcat(amenda, "10.Depasirea limitei de viteza cu 10-50 km/h\t10.000$\tNone\n\"); strcat(amenda, "11.Depasirea limitei de viteza cu 50+ km/h\t20.000$\tConfiscare\n\"); "Select", "Cancel"); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pLevel] < 2) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ticket: {FFFFFF}Nu poti da amenda jucatorilor cu level 1!"); format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s", giveplayer, moneys, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Offiterul %s ti-a dat o amenda in valoare de $%d, motiv: %s", sendername, moneys, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Scrie /accept ticket, pentru a plati amenda."); TicketOffer[giveplayerid] = playerid; TicketMoney[giveplayerid] = moneys; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Acel jucator nu este langa tine !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Acel jucator este offline !"); return 1; } return 1; }