SA-MP Forums Archive
Little help here thnx :) - 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: Little help here thnx :) (/showthread.php?tid=537119)



Little help here thnx :) - Goldac - 13.09.2014

why this is not working??

Код:
if(!strcmp(inputtext, random("muhad", "me", "fake",), true))   <--  error 035: argument type mismatch (argument 1)
			{
				SendClientMessage(playerid , -1, "hey");
			}



Re: Little help here thnx :) - [XST]O_x - 13.09.2014

What is this:
pawn Код:
random("muhad", "me", "fake",)
?
What do you want it to do?


Re: Little help here thnx :) - Goldac - 13.09.2014

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == pickup)
	{
	    ShowPlayerDialog(playerid, 10, 3, "Protection System", "Enter your password below:", "Select", "Cancel");
	}
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 10)
	{
	    if(response)
	    {
	        if(!strcmp(inputtext, random("muhad", "me", "fake"), true))
			{
				SendClientMessage(playerid , -1, "hey");
			}
		}
	}
	return 1;
}



Re: Little help here thnx :) - Goldac - 14.09.2014

pump


Re: Little help here thnx :) - Goldac - 14.09.2014

bump


Re: Little help here thnx :) - Goldac - 14.09.2014

no one can help meeE :/


Re: Little help here thnx :) - Jessyy - 14.09.2014

nobody can not help you because we don't know what are you trying to do there
Код:
if(!strcmp(inputtext, random("muhad", "me", "fake",), true))
I do not know how to analyze this line... only one thing i see other the "fake" you puted ',' and ofther ')'


Re: Little help here thnx :) - [XST]O_x - 14.09.2014

Quote:
Originally Posted by Goldac
Посмотреть сообщение
no one can help meeE :/
I tried to help you, by asking:
Quote:

What is this:
pawn Code:
random("muhad", "me", "fake",)
?
What do you want it to do?

What the actual fuck does this line suppose to mean?
But you ignored. Oh well.


Re: Little help here thnx :) - rymax99 - 14.09.2014

Quote:
Originally Posted by Goldac
Посмотреть сообщение
no one can help meeE :/
People tend to ignore topics that are repeatedly bumped.


Re: Little help here thnx :) - Goldac - 14.09.2014

xst sorry i wasn't trying to ignote you :/

anyways i put that line there so when i put a password as example <me> on the dialog i want that line make me have 1/3 chances to make the server sendclientmessage


edit:

I want every time where i go to that pickup password change and put one of them random