SetVehicleNumberPlate help
#1

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.
Reply
#2

How does it get saved?
Reply
#3

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

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]);
Reply
#5

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

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)