Error Help (+rep) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error Help (+rep) (
/showthread.php?tid=547903)
Error Help (+rep) -
ScripteRMKD - 26.11.2014
Hello Scripterzzz...I need help with this error:
Код:
D:\*\Za Script\GameModovi\BalkanEvolution RPG Macedonia\pawno\include\fixes.inc(3307) : error 001: expected token: ";", but found "return"
Line:
pawn Код:
stock GetMyBoatMID(playerid,ID = 0)//boat
pawn Код:
stock AllMyBoats(playerid)//boat
{
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid,ime,sizeof(ime));
if(IsPlayerConnected(playerid))
{
new i, x;
while (i < sizeof(MyVehicle))
{
if(MyVehicle[i][MyVehSlot] == 1)
{
if(MyVehicle[i][MyVehBoat] != -1)
{
if (strmatch(MyVehicle[i][MyVehOwner], ime)) x++;
}
}
}
}
return -1;
}
stock GetMyBoatMID(playerid,ID = 0)//boat
{
new ime[MAX_PLAYER_NAME];
GetPlayerName(playerid,ime,sizeof(ime));
new x = 0;
for (new i; i < sizeof(MyVehicle);i++)
{
if(MyVehicle[i][MyVehSlot] == 1)
{
if(MyVehicle[i][MyVehBoat] != -1)
{
if (strmatch(MyVehicle[i][MyVehOwner], ime))
{ x++;
if(x >= ID )
{return i;}
}
}
}
}
return -1;
}
Re: Error Help (+rep) -
AzaMx - 26.11.2014
Update your fixes includes by download here
https://sampforum.blast.hk/showthread.php?tid=292813 and re-compiled it with your script.
Re: Error Help (+rep) -
ScripteRMKD - 29.11.2014
When i update i get this error _ALS_OnFilterScriptInit defined samp and when i remove #include < fixes > i dont get errors
Re: Error Help (+rep) -
Glossy42O - 29.11.2014
O.o never heard of return -1;
try to make it return 1;
Re: Error Help (+rep) -
ScripteRMKD - 29.11.2014
i change it (all return -1 to return 1) and again not working again same error
Re: Error Help (+rep) -
ScripteRMKD - 29.11.2014
bump?
Re: Error Help (+rep) -
Glossy42O - 29.11.2014
show me your inculdes? all of them
Re: Error Help (+rep) -
ScripteRMKD - 29.11.2014
pawn Код:
#include < a_samp >
#include < a_objects >
#include < core >
#include < float >
#include < time >
#include < morphinc >
#include < file >
#include < foreach >
#include < streamer >
#include < YSI\y_ini >
#include < sscanf2 >
#include < zcmd >
#include < Dini >
#include < mSelection >
#include < fixes >
#include < dutils >
#include < utils >
Re: Error Help (+rep) -
ScripteRMKD - 30.11.2014
bump
Re: Error Help (+rep) -
Glossy42O - 30.11.2014
It compiles fine to me..