21.02.2011, 20:49
Yo, i got two errors.
Code:
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.
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;
}