dini going crazy?
#1

hmm i was trying to make a saving system .. and i dont want to use dudb ... i want to use dini ..
now the code is
pawn Код:
stock Stats(playerid)
{
    new thefile[256];
    new Float:thealth;  GetPlayerHealth(playerid, Float:thealth);
    format(thefile,sizeof(thefile),"/players/%s.sav",pName(playerid));
    dini_Set(thefile,"Health",floatround(thealth));//line 58
}
Everything is ok .. but i get these error

pawn Код:
.pwn(58) : error 035: argument type mismatch (argument 3)
Why is that ? I could not fix it ... anyone could help me ?
Reply
#2

Which line is line 58?
Reply
#3

pawn Код:
new Float:thealth = GetPlayerHealth(playerid); // Line 56 (?)
Try that..
Reply
#4

Nop, it didnt work ..
and line 58 is this
dini_Set(thefile,"Health",floatround(thealth));//line 58
Reply
#5

You know It's not always that exact line the error Is showing that is wrong..
If you defined the variable wrong above but in the right format It will show an error where you use It.

Try this;

pawn Код:
stock Stats(playerid)
{
    new thefile[256];
    new Float:thealth;
    GetPlayerHealth(playerid, thealth);
    format(thefile,sizeof(thefile),"/players/%s.sav",pName(playerid));
    dini_Set(thefile,"Health",thealth);//line 58
}
Reply
#6

From dini_set to dini_IntSet ... thats what i did and it showed no errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)