Urgent help needed!!!!
#1

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!
Reply
#2

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

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

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

not helping me.
Reply
#6

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

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! ] );
Reply
#8

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
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)