is this possible? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is this possible? (
/showthread.php?tid=111158)
is this possible? -
cdcyborg - 30.11.2009
is it possible to make this diffrent:
instead of using: dUserSetINT(playername(playerid)).(item,data);
everytime, can i do something like this:
Код:
public writeini(playerid,item,data) {
dUserSetINT(playername(playerid)).(item,data);
return 1;
}
and use:
writeini(playerid,"money","GetPlayerCash(playerid) )
?? Thanks in advance.
Re: is this possible? -
niCe - 30.11.2009
I think so.
..by the way..
writeini(playerid, "money", GetPlayerCash(playerid));
Re: is this possible? -
Crusher!! - 01.12.2009
Код:
// Write(playerid,"money",100);
stock Write(playerid,item[],data)
{
dini_IntSet(playername(playerid),item,data);
return dini_Int(playername(playerid),item);
}