SA-MP Forums Archive
How can i do something like this dini_IntSet(file, "points", ++); - 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: How can i do something like this dini_IntSet(file, "points", ++); (/showthread.php?tid=615981)



How can i do something like this dini_IntSet(file, "points", ++); - burhanjaved - 29.08.2016

Hello,

I tried to do it like this:

Код:
new file[64];
new string[128];
format(file, sizeof(file), "users/%s.ini", inputtext);
if(response)
{
dini_IntSet(file, "points", ++);
}
Error:

29243) : error 029: invalid expression, assumed zero
(29243) : error 022: must be lvalue (non-constant)

Line:

Код:
(29243)dini_IntSet(file, "points", ++);
Can you guys help me with this...?


Re: How can i do something like this dini_IntSet(file, "points", ++); - Shinja - 29.08.2016

Try this
PHP код:
dini_IntSet(file"points"dini_Int(file"points")+1); 



Re: How can i do something like this dini_IntSet(file, "points", ++); - burhanjaved - 29.08.2016

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Try this
PHP код:
dini_IntSet(file"points"dini_Int(file"points")+1); 
Yeh, its working Thanks bro..
REP given.