SA-MP Forums Archive
Urgent help needed!!!! - 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: Urgent help needed!!!! (/showthread.php?tid=273877)



Urgent help needed!!!! - [JnA]DukeNukem - 03.08.2011

Simple question!! I'm using YCMD and i want to create a command something like /blabla [message]
how do i make dini save the [message part] ?? dini_IntSet(pFile, "blabla", [message]);

?

please help!


AW: Urgent help needed!!!! - Drebin - 03.08.2011

dini_IntSet is for saving an Integer, and I doubt [message] is supposed to be smth like 5461268


Re: Urgent help needed!!!! - [JnA]DukeNukem - 03.08.2011

I just want to save /register [password] ( ( the [password] to a file ! ) )


AW: Urgent help needed!!!! - Drebin - 03.08.2011

pawn Код:
dini_Set(WhereToSave,"Password",WhateverYouWannaSave);



Re: Urgent help needed!!!! - [JnA]DukeNukem - 03.08.2011

not helping me.


Re: Urgent help needed!!!! - Mean - 03.08.2011

Yes, it is helping you...
pawn Код:
dini_Set( file path/player file, "password", the string );



Re: Urgent help needed!!!! - [JnA]DukeNukem - 03.08.2011

How do i do that with YCMD ??

how do i save what i type in after /password ?? it's saying something like not valid type bla bla ... please can you help me in any way ?

here's my "command"

Код:
dini_IntSet(pFile, "Password", [I WANT HERE TO BE WHAT I TYPE! ] );



AW: Urgent help needed!!!! - Drebin - 03.08.2011

pawn Код:
new params[128];
ycmd("/register")
{
     if(!strlen(params))return SendClientMessage(playerid,COLOR_MAIN,"USAGE: /register [password]");
     new string[256];
     format(string,sizeof(string),"%s",params);
     dini_Set(pFile,"Password",string);;
     return true;
}
??
I suggest using ocmd or dcmd + sscanf, but it's your choice


Re: AW: Urgent help needed!!!! - [JnA]DukeNukem - 04.08.2011

Quote:
Originally Posted by Drebin
Посмотреть сообщение
pawn Код:
new params[128];
ycmd("/register")
{
     if(!strlen(params))return SendClientMessage(playerid,COLOR_MAIN,"USAGE: /register [password]");
     new string[256];
     format(string,sizeof(string),"%s",params);
     dini_Set(pFile,"Password",string);;
     return true;
}
??
I suggest using ocmd or dcmd + sscanf, but it's your choice
Thank you very much!

I will consider using that, but i use dini to save some minor things so no prob