SA-MP Forums Archive
SetVehicleNumberPlate help - 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: SetVehicleNumberPlate help (/showthread.php?tid=460723)



SetVehicleNumberPlate help - damian123 - 29.08.2013

On my LoadPlayerVehicles:
Код:
SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][v][pvNumberPlate]);
The thing is that it appears in the game like 0NumberPlate=example instead of "example", I don't know why, though.


Re: SetVehicleNumberPlate help - Konstantinos - 29.08.2013

How does it get saved?


Re: SetVehicleNumberPlate help - damian123 - 29.08.2013

pawn Код:
enum pvInfo
{
    pvNumberPlate[32], // sz
};
new PlayerVehicleInfo[MAX_PLAYERS+1][MAX_PLAYERVEHICLES][pvInfo];



Re: SetVehicleNumberPlate help - Konstantinos - 29.08.2013

You didn't understand me. It saved "0NumberPlate=example", I meant how does it get loaded*.

The code you load it from the file to do:
pawn Код:
SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][v][pvNumberPlate]);



Re: SetVehicleNumberPlate help - damian123 - 29.08.2013

pawn Код:
format(var, 32, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[playerid][v][pvNumberPlate]);fwrite(hFile, var);



Re: SetVehicleNumberPlate help - damian123 - 31.08.2013

Anyone?