SA-MP Forums Archive
Help input text - 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)
+--- Thread: Help input text (/showthread.php?tid=443738)



Help input text - kalanerik99 - 13.06.2013

Hi I want to make that it will give me input text in file and not the hash text.

Please help

PHP код:
if(dialogid == 25)
{
if(
response)
{
new 
file[256], string[256];
format(filesizeof(file), Changesfile);
dini_Create(file);
dini_IntSet(file"-"udb_hash(inputtext)); //Here
format(string128"[SYSTEM]: You succesfully added a new change with this string: %s.",inputtext);
SendClientMessage(playeridCOLOR_YELLOWstring);




AW: Help input text - HurtLocker - 13.06.2013

dini_Set(file, "-", inputtext);


Re: Help input text - kalanerik99 - 13.06.2013

Thanks


Re: Help input text - kalanerik99 - 14.06.2013

New problem
Error: : error 006: must be assigned to an array
pawn Код:
if(dialogid == 25)
{
if(response)
{
new file[256], string[256];
format(file, sizeof(file), Changesfile);
dini_Create(file);
dini_Set(file, "", Changes[Change] = inputtext); //HERE
format(string, 128, "[SYSTEM]: You succesfully added a new change with this string: %s.",inputtext);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}



Re: Help input text - kalanerik99 - 14.06.2013

Please