A couple of errors when compiling -
xIs0BiHx - 05.08.2016
Код:
C:\Users\Arbeit\Desktop\PR-RP\gamemodes\Compile.pwn(969) : error 001: expected token: "-identifier-", but found "("
C:\Users\Arbeit\Desktop\PR-RP\gamemodes\Compile.pwn(1111) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Arbeit\Desktop\PR-RP\gamemodes\Compile.pwn(1223) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Arbeit\Desktop\PR-RP\gamemodes\Compile.pwn(1576) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Arbeit\Desktop\PR-RP\gamemodes\Compile.pwn(4273) : error 001: expected token: "-identifier-", but found "-integer value-"
../gamemodes/Plugins/Gates.pwn(4) : error 001: expected token: "-identifier-", but found "-integer value-"
../gamemodes/Plugins/Gates.pwn(116) : error 017: undefined symbol "Iter_Count"
../gamemodes/Plugins/Gates.pwn(136) : error 017: undefined symbol "tCreateGateObjID"
../gamemodes/Plugins/Gates.pwn(136) : warning 215: expression has no effect
../gamemodes/Plugins/Gates.pwn(136) : error 001: expected token: ";", but found "]"
../gamemodes/Plugins/Gates.pwn(136) : error 029: invalid expression, assumed zero
../gamemodes/Plugins/Gates.pwn(136) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
11 Errors.
Код:
969 new Iterator:Vehicle<MAX_VEHICLES>;
Код:
1111 new Iterator:IntIterator<MAX_INTS>;
Код:
1223 new Iterator:HouseIterator<MAX_HOUSES>;
Код:
1576 new Iterator:BizIterator<MAX_BUSINESSES>;
Код:
4273 Iterator:CriminalRecordIterator[MAX_PLAYERS]<MAX_CRIMINAL_RECORDS>,
Those are the ones I need help with for now..
Thanks!
Re: A couple of errors when compiling -
Konstantinos - 05.08.2016
Do you use y_iterate (YSI) or foreach as a standalone? For YSI library, update to the latest version:
http://forum.sa-mp.com/showpost.php?...99&postcount=2
and remove "Vehicle" iterator as it has been added in the include along with "LocalVehicle" (one for all vehicles in all scripts and local is per script).
Re: A couple of errors when compiling -
Sew_Sumi - 05.08.2016
Looked like you had used <> for arrays... nvm.
Re: A couple of errors when compiling -
Konstantinos - 05.08.2016
I actually reproduced it and it is because y_iterate/foreach is not included so without the macros from the include, those errors are given.
Re: A couple of errors when compiling -
xIs0BiHx - 05.08.2016
I got that one fixed already. I got another problem now.
Код:
../gamemodes/Build.pwn(14270) : error 025: function heading differs from prototype
../gamemodes/Build.pwn(14271) : error 021: symbol already defined: "split"
../gamemodes/Commands.pwn(15628) : error 017: undefined symbol "Streamer_GetTickRate"
../gamemodes/Commands.pwn(15629) : error 017: undefined symbol "Streamer_SetTickRate"
../gamemodes/Commands.pwn(15650) : error 017: undefined symbol "Streamer_GetMaxItems"
../gamemodes/Commands.pwn(15651) : error 017: undefined symbol "Streamer_SetMaxItems"
../gamemodes/Commands.pwn(15672) : error 017: undefined symbol "Streamer_GetVisibleItems"
../gamemodes/Commands.pwn(15673) : error 017: undefined symbol "Streamer_SetVisibleItems"
../gamemodes/Commands.pwn(15695) : error 017: undefined symbol "Streamer_GetRadiusMultiplier"
../gamemodes/Commands.pwn(15697) : error 017: undefined symbol "Streamer_SetRadiusMultiplier"
../gamemodes/Commands.pwn(15709) : error 017: undefined symbol "Streamer_IsToggleCameraUpdate"
../gamemodes/Commands.pwn(15712) : error 017: undefined symbol "Streamer_ToggleCameraUpdate"
../gamemodes/Commands.pwn(15717) : error 017: undefined symbol "Streamer_ToggleCameraUpdate"
../gamemodes/Commands.pwn(15726) : error 017: undefined symbol "Streamer_IsToggleIdleUpdate"
../gamemodes/OnGameMode.pwn(565) : error 017: undefined symbol "TryMe"
../gamemodes/OnGameMode.pwn(590) : error 017: undefined symbol "Streamer_SetCellDistance"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
Build.pwn
Line(s) 14270-14285
stock split(const strsrc[], strdest[][], delimiter = '|')
{
new i, li, aNum, len, srclen = strlen(strsrc);
while(i <= srclen)
{
if (strsrc[i] == delimiter || i == srclen)
{
len = strmid(strdest[aNum], strsrc, li, i, 128);
strdest[aNum][len] = 0;
li = i + 1;
aNum++;
}
i++;
}
return 1;
}
Код:
Commands.pwn
Line(s) 15628-15726
new old_tick_rate = Streamer_GetTickRate();
Streamer_SetTickRate(tick_rate);
new string[128];
format(string, sizeof(string), "Streamer tick rate has been set from %i to %i.", old_tick_rate, tick_rate);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamermaxitems(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, max_items;
if(sscanf(params, "ii", type, max_items))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamermaxitems [type] [max items]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new old_max_items = Streamer_GetMaxItems(type);
Streamer_SetMaxItems(type, max_items);
new string[128];
format(string, sizeof(string), "Streamer maximum items have been set from %i to %i.", old_max_items, max_items);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamervisibleitems(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, visible_items;
if(sscanf(params, "ii", type, visible_items))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamervisibleitems [type] [max visibl items]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new old_visible_items = Streamer_GetVisibleItems(type);
Streamer_SetVisibleItems(type, visible_items);
new string[128];
format(string, sizeof(string), "Streamer maximum visible items have been set from %i to %i.", old_visible_items, visible_items);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamerradius(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, radius;
if(sscanf(params, "if", type, radius))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamerradius [type] [radius]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new Float:old_radius;
Streamer_GetRadiusMultiplier(type, old_radius);
Streamer_SetRadiusMultiplier(type, radius);
new string[128];
format(string, sizeof(string), "Streamer radius has been set from %f to %f.", old_radius, radius);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamercameraupdate(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
if(Streamer_IsToggleCameraUpdate(playerid) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned on.");
Streamer_ToggleCameraUpdate(playerid, 1);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned off.");
Streamer_ToggleCameraUpdate(playerid, 0);
}
return 1;
}
//============================================//
COMMAND:streameridleupdate(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
if(Streamer_IsToggleIdleUpdate(playerid) == 0)
Код:
OnGameMode.pwn
Код:
590 Streamer_SetCellDistance(1000.0);
Re: A couple of errors when compiling -
xIs0BiHx - 05.08.2016
I fixed the build.pwn.
The Commands.pwn is the one where I can't get further..