Help with Number plate
#1

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);
                }
Reply
#2

Just a guess,maybe during reading PlayerVehicleInfo[playerid][v][pvNumberPlate] is set equal to pv0NumPlate
Reply
#3

Please help me guys
Reply
#4

pawn Код:
strcpy(PlayerVehicleInfo[playerid][i][pvNumberPlate], tmpSz_NumPlate, 32);
is this a problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)