A difficult CMD with 8 parametres??? - 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: A difficult CMD with 8 parametres??? (
/showthread.php?tid=74590)
A difficult CMD with 8 parametres??? -
Dark_Kostas - 24.04.2009
I want to make a cmd like /addteleport which i will type
/addteleport x y z interiorX interiorY interiorZ description interiorid
and after that it will add a line on my file called teleports.cfg
like that
1836.1278|-1682.9248|13.3609|493.7652|-24.4901|1000.6797|~y~Alhambra|17
Can anyone help me to make that cmd?
I know that the basic code is something like, but what about all of my parameters?
pawn Код:
new File:hFile;
hFile = fopen("/files/teleports.cfg", io_append);
fwrite(hFile, string);
fclose(hFile);
Re: A difficult CMD with 8 parametres??? -
Dark_Kostas - 24.04.2009
Please, anybody can help me? I really need that command. I heard that sssaf something like that is really easy, but which is the exactly name and how is it working?
Re: A difficult CMD with 8 parametres??? -
Weirdosport - 24.04.2009
Check my signature for the teleport system >.>
If you want to make your own, sscanf is the thing to use. It's listed on the wiki under "fast commands" and it's also in my script.