Help with Number plate - 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: Help with Number plate (
/showthread.php?tid=352303)
Help with Number plate -
MA_proking - 19.06.2012
I made number plate system for my server thats save in file.
But when i rejoin become like this
i only setted Pro-617
and in file it become like
Код:
pv0NumPlate=pv0NumPlate=Pro-619
here is pawn codes
pawn Код:
for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
{
format(var, 32, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[playerid][v][pvNumberPlate]);fwrite(hFile, var);
}
Re: Help with Number plate -
[MM]RoXoR[FS] - 19.06.2012
Just a guess,maybe during reading PlayerVehicleInfo[playerid][v][pvNumberPlate] is set equal to pv0NumPlate
Re: Help with Number plate -
MA_proking - 19.06.2012
Please help me guys
Re: Help with Number plate -
MA_proking - 22.06.2012
pawn Код:
strcpy(PlayerVehicleInfo[playerid][i][pvNumberPlate], tmpSz_NumPlate, 32);
is this a problem?