Inptutext
#1

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

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);
        }

 }
Reply
#3

Код:
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)
Reply
#4

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);
        }

 }
Reply
#5

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

Okay,can you show me your line 196?
Reply
#7

dini_IntSet(file,"lapas1",inputtext);
Reply
#8

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

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

Edit: Nevermind,use the codes they gave you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)