Cant see what i have to do - 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: Cant see what i have to do (
/showthread.php?tid=170365)
Cant see what i have to do -
dowster - 22.08.2010
So i am trying to make my script save the player cords in a file titled by their name, i have been looking at the wiki a lot for this but it keeps telling me when i compile it that there are too many arguments for the fwrite line, can you tell me what i have to do to get this to work?
here is the Script, im compiling it on the 0.3b pawn includes if that helps.
Re: Cant see what i have to do -
Hiddos - 22.08.2010
pawn Код:
format(string, sizeof string, "X: %f\n\r Y: %f\n\r Z: %f\n\r", x, y, z);
fwrite(stats, string);
Not everything works as a format thingy.
Re: Cant see what i have to do -
dowster - 22.08.2010
thanks ill edit and try
Re: Cant see what i have to do -
dowster - 22.08.2010
ok i updated it, now im having a hard time getting it to first see if the file exists, and then have it automatically spawn the player in that location, i probably to add a SetPlayerSkin somewhere dont i?
this is the updated version of the script: