Reading integer from file with Dini returns wrong or null value
#2

Try IntSet because where dini_Int is, there should be a value there (meaning that you are setting the var to the value). If IntSet does not work try the GetPVar thingy (the one that you would use to get the PVar); I am not good at PVars, but why not use regular vars?

With normal vars it would look like:

pawn Код:
PlayerData[playerid][Hunts] = dini_Int(szRoot,"Hunts");
Assuming 'PlayerData' would be the variable that the enum is stored in.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)