Few errors.
#1

Yo, i got two errors.
pawn Код:
C:\Archivos de programa\Rockstar Games\GTA San Andreas\SA-MP 0.3c\Marricio Scripting\filterscripts\plate.pwn(111) : error 033: array must be indexed (variable "GetVehicleNumberPlate")
C:\Archivos de programa\Rockstar Games\GTA San Andreas\SA-MP 0.3c\Marricio Scripting\filterscripts\plate.pwn(133) : error 079: inconsistent return types (array & non-array)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Code:
pawn Код:
stock GetVehicleNumberPlate(vehicleid) // By Jochemd
{
    if(vehicleid != INVALID_VEHICLE_ID) return vPlate[vehicleid];
    return 0; // error 2 here
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == D_TRACK)
    {
         for(new v; v<MAX_VEHICLES; v++)
         {
            if(GetVehicleNumberPlate(v) == strlen(inputtext)) // Error 1 here.
            {
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Few errors. - by Marricio - 21.02.2011, 20:49
Re: Few errors. - by JaTochNietDan - 21.02.2011, 21:19
Re: Few errors. - by Marricio - 21.02.2011, 21:26

Forum Jump:


Users browsing this thread: 2 Guest(s)