SA-MP Forums Archive
Inptutext - 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: Inptutext (/showthread.php?tid=159696)



Inptutext - gedas_lt - 14.07.2010

I make this scipt:
Код:
if(dialogid == 111)
	{
		if(response)
		{
		}
		if(!response)
		{
		new name[MAX_PLAYER_NAME],file[128];
		GetPlayerName(playerid,name,sizeof(name));
		format(file,sizeof(file),"uzrasai/%s.ini",name);
		dini_IntSet(file,"lapas1",inputtext);
		}

 }
and give error:
Код:
C:\Documents and Settings\Gedas\Desktop\uzrasuknigale.pwn(196) : error 035: argument type mismatch (argument 3)



Re: Inptutext - [XST]O_x - 14.07.2010

Hmm try this:
pawn Код:
if(dialogid == 111)
    {
        if(response == 1) // If the player clicks on the left button
        {
        }
        if(response == 0)// If he clicks on the right button
        {
        new name[MAX_PLAYER_NAME],file[128];
        GetPlayerName(playerid,name,sizeof(name));
        format(file,sizeof(file),"uzrasai/%s.ini",name);
        dini_IntSet(file,"lapas1",inputtext);
        }

 }



Re: Inptutext - gedas_lt - 14.07.2010

Код:
C:\Documents and Settings\Gedas\Desktop\uzrasuknigale.pwn(193) : error 017: undefined symbol "MAX_FORUMS"
C:\Documents and Settings\Gedas\Desktop\uzrasuknigale.pwn(195) : error 017: undefined symbol "vBulletin"
C:\Documents and Settings\Gedas\Desktop\uzrasuknigale.pwn(201) : error 035: argument type mismatch (argument 3)



Re: Inptutext - [XST]O_x - 14.07.2010

LOL,you copied from my signature ^^
Copy this:
pawn Код:
if(dialogid == 111)
    {
        if(response == 1) // If the player clicks on the left button
        {
        }
        if(response == 0)// If he clicks on the right button
        {
        new name[MAX_PLAYER_NAME],file[128];
        GetPlayerName(playerid,name,sizeof(name));
        format(file,sizeof(file),"uzrasai/%s.ini",name);
        dini_IntSet(file,"lapas1",inputtext);
        }

 }



Re: Inptutext - gedas_lt - 14.07.2010

C:\Documents and Settings\Gedas\Desktop\uzrasuknigale.pwn(196) : error 035: argument type mismatch (argument 3)


Re: Inptutext - [XST]O_x - 14.07.2010

Okay,can you show me your line 196?


Re: Inptutext - gedas_lt - 14.07.2010

dini_IntSet(file,"lapas1",inputtext);


Re: Inptutext - Sergei - 14.07.2010

Код:
dini_IntSet(file,"lapas1",strval(inputtext));



Re: Inptutext - Jakku - 14.07.2010

pawn Код:
if(dialogid == 111)
    {
        if(response == 1) // If the player clicks on the left button
        {
        }
        if(response == 0)// If he clicks on the right button
        {
        new name[MAX_PLAYER_NAME],file[128];
        GetPlayerName(playerid,name,sizeof(name));
        format(file,sizeof(file),"uzrasai/%s.ini",name);
        dini_IntSet(file,"lapas1",strlen(inputtext));
        }

 }
E: Sorry, my mistake. Fixed xD


Re: Inptutext - [XST]O_x - 14.07.2010

Edit: Nevermind,use the codes they gave you.