SA-MP Forums Archive
Vehicle storage problem - 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: Vehicle storage problem (/showthread.php?tid=397692)



Vehicle storage problem - Red_Dragon. - 06.12.2012

i have that command in a filterscript but i got these errors while compiling
pawn Код:
C:\PC\E\Express Gaming Roleplay Server - Copy\filterscripts\Vstorage.pwn(1) : warning 203: symbol is never used: "vstorage"
C:\PC\E\Express Gaming Roleplay Server - Copy\filterscripts\Vstorage.pwn(1 -- 22) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and this is the code
pawn Код:
CMD:vstorage(playerid, params[])
{
    new vstring[1024];
    for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
        if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
            if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
                format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
            }
            else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
                format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
            }
            else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
                format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
            }
            else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]);
        }
        else strcat(vstring, "\nEmpty");
    }
    ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
    return 1;
}



Re: Vehicle storage problem - Windrush - 06.12.2012

You Need A Any Kind Of Public or Paste It From Your GM


Re: Vehicle storage problem - XStormiest - 06.12.2012

hmm did you use #include <zcmd>?


Re: Vehicle storage problem - Red_Dragon. - 06.12.2012

@windrush i can't make a public function for it

@XStormiest What do you mean ?? it works without #include <zcmd> and by the way this is the whole code posted above


Re: Vehicle storage problem - Red_Dragon. - 09.12.2012

Bump
and after 3 days :/


Re: Vehicle storage problem - deb014 - 09.12.2012

it looks like an include is missing, something like zcmd or dcmd.


Re: Vehicle storage problem - Red_Dragon. - 09.12.2012

No includes missing