Please Help - 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: Please Help (
/showthread.php?tid=110392)
Please Help -
Gintas_Kovalskis - 26.11.2009
Hi, I who are on their way home systems but does not go as I want to do that when you purchased the file name of the exchange house (home ideas) eg. The first player buys a home and then formation of a file named 1, the second player Looking for a house and then formation of a new file named nu 2, etc. who can please help Here is my code:
Код:
stock AddHouse(houseid)
{
new file[128];
format(file, sizeof(file), "houses/%i.ini", houseid);
if(!dini_Exists(house))
{
dini_Create(file);
dini_Set(file,"owner", "none";
dini_IntSet(file,"houseid",houseid);
dini_IntSet(file,"VirtualWorld",hInfo[playerid][world]);
}
}
I also want that every time at the same exchange and virtualworld