A difficult CMD with 8 parametres???
#1

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);
Reply
#2

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?
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)