Y_ini update - 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: Y_ini update (
/showthread.php?tid=552952)
Y_ini update -
Banditukas - 27.12.2014
Hi,
I use INI_WriteString to write string. But problem is when i write string sometimes that string duplicate if i have
Name = First_LastName
I got
Name = First_LastNameName = First_LastName
or
Name = First_LastName
Name = First_LastName
I don't understand maybe i need to use other function not INI_WriteString?
Re: Y_ini update -
biker122 - 27.12.2014
Show where you do this. Are we astrologers to guess your code?
Re: Y_ini update -
Banditukas - 27.12.2014
It'is not names but it'is string players can write them and i write into file i check them job
Код:
new jobmessage[ 50 ];
if( job[ playerid ] == 1 )
{
jobmessage = "FirstLeader";
}
else if( job[ playerid ] == 2 )
{
jobmessage = "SecondLeader";
}
new
INI:ini = INI_Open("jobmessages.ini");
INI_WriteString(ini, jobmessage,inputtext );
INI_Close(ini);
Re: Y_ini update -
Banditukas - 27.12.2014
UP THREAD.
Re: Y_ini update -
SickAttack - 27.12.2014
Show us your code.
Re: Y_ini update -
Banditukas - 27.12.2014
Код:
new jobmessage[ 50 ];
if( job[ playerid ] == 1 )
{
jobmessage = "FirstLeader";
}
else if( job[ playerid ] == 2 )
{
jobmessage = "SecondLeader";
}
new
INI:ini = INI_Open("jobmessages.ini");
INI_WriteString(ini, jobmessage,inputtext );
INI_Close(ini);