Error Help (+rep)
#1

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;
}
Reply
#2

Update your fixes includes by download here https://sampforum.blast.hk/showthread.php?tid=292813 and re-compiled it with your script.
Reply
#3

When i update i get this error _ALS_OnFilterScriptInit defined samp and when i remove #include < fixes > i dont get errors
Reply
#4

O.o never heard of return -1;

try to make it return 1;
Reply
#5

i change it (all return -1 to return 1) and again not working again same error
Reply
#6

bump?
Reply
#7

show me your inculdes? all of them
Reply
#8

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 >
Reply
#9

bump
Reply
#10

It compiles fine to me..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)