Little help here thnx :)
#1

why this is not working??

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

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

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

pump
Reply
#5

bump
Reply
#6

no one can help meeE :/
Reply
#7

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 ')'
Reply
#8

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.
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)