26.12.2013, 11:20
(204) : error 001: expected token: "]", but found "-identifier-"
(204) : warning 215: expression has no effect
(204) : error 001: expected token: ";", but found "]"
(204) : error 029: invalid expression, assumed zero
(204) : fatal error 107: too many error messages on one line
trasee.inc
(204) : warning 215: expression has no effect
(204) : error 001: expected token: ";", but found "]"
(204) : error 029: invalid expression, assumed zero
(204) : fatal error 107: too many error messages on one line
Код:
#include <trasee> // ... enum _MISIUNE { mMarfa[50], mLoadp[70], mUnloadp[70], Float:mLoadp_x, Float:mLoadp_y, Float:mLoadp_z, Float:mUnLoadp_x, Float:mUnLoadp_y, Float:mUnLoadp_z } // ... if(strcmp(cmd, "/start", true) == 0) //start { new transport_marfa = random(sizeof(LS_CARGO_MARFA)); new transport_nume_loadp = random(sizeof(LS_CARGO_LoadPoint_Nume)); new transport_nume_unloadp = random(sizeof(LS_CARGO_UnLoadPoint_Nume)); format(MisiuneInfo[playerid][mLoadp], sizeof(MisiuneInfo[playerid][mLoadp]), "%s", LS_CARGO_LoadPoint_Nume[transport_nume_loadp]); // Line 204 format(MisiuneInfo[playerid][mLoadp], sizeof(MisiuneInfo[playerid][mLoadp]), "%s", LS_CARGO_LoadPoint_Nume[transport_nume_loadp]); // Line 205 format(MisiuneInfo[playerid][mUnoadp], sizeof(MisiuneInfo[playerid][mUnoadp]), "%s", LS_CARGO_UnLoadPoint_Nume[transport_nume_unloadp]); // Line 206 } // ...
Код:
new LS_CARGO_LoadPoint_Nume[][] = { {"LS: Cargo Trailer"}, {"LS: Jefferson Motel"}, {"LS: Sprunk INC."}, {"LS: Stadium"}, {"LS: Docks"}, {"LS: Motel"}, {"LS: Construction Site"}, {"LS: Farmacie"}, {"LS: Cathay"}, {"LS: Grotii"} }; new LS_CARGO_UnLoadPoint_Nume[][] = { {"LS: Haul"}, {"LS: Fallen"}, {"SF: Airport"}, {"SF: Stadium"}, {"SF: Computer Teh"}, {"SF: Cluchin Bell"}, {"SF: Hispital"}, {"SF: SupaSave"}, {"SF: GunDealer"}, {"SF: WangCars"}, {"LV: 4 Dragons"}, {"LV: Piramida"}, {"LV: Auto Bahn"}, {"LV: Royal Casino"}, {"LV: Corabie"}, {"LV: Clowns Pocket"}, {"LV: Rock Hotel"}, {"LV: Mall"}, {"LV: Stadion Bandits"}