ShowPlayerDialog Problem :/
#1

Hello! Again me xD

Well...I have one problem...

When I compile it I get this error:

ERROR:

PHP код:
C:\Users\tadej\Desktop\My ServerDon't touch!\gamemodes\Samp.pwn(275) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
1 Error. 
On this line:

LINE:

PHP код:
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUTCOLOR_YELLOW"Register""Welcome! This account is not registered.\nEnter your password below to create a new account.""Register""Exit"); 
Can someone fix this please?

Thanks for your help
Reply
#2

Remove the COLOR_YELLOW

pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "Welcome! This account is not registered.\nEnter your password below to create a new account.", "Register", "Exit");
Reply
#3

Quote:
Originally Posted by Areax
Посмотреть сообщение
Hello! Again me xD

Well...I have one problem...

When I compile it I get this error:

ERROR:

PHP код:
C:\Users\tadej\Desktop\My ServerDon't touch!\gamemodes\Samp.pwn(275) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
1 Error. 
On this line:

LINE:

PHP код:
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUTCOLOR_YELLOW"Register""Welcome! This account is not registered.\nEnter your password below to create a new account.""Register""Exit"); 
Can someone fix this please?

Thanks for your help
Delete the COLOR_YELLOW
Reply
#4

Remove "COLOR_YELLOW"

In future references look at the syntax https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#5

Then how can I make that this should be in a color?
Reply
#6

Quote:
Originally Posted by Areax
Посмотреть сообщение
Then how can I make that this should be in a color?
You would put a color like this in it: {E0C61B} = YELLOW.

EG.
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "{E0C61B}Welcome! This account is not registered.\nEnter your password below to create a new account.", "Register", "Exit");
Reply
#7

In the text add {E8FC03}

Note - if u want the color on each line, then add {E8FC03} after each new line
Reply
#8

Quote:
Originally Posted by Kestro
Посмотреть сообщение
You would put a color like this in it: {E0C61B} = YELLOW.

EG.
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "{E0C61B}Welcome! This account is not registered.\nEnter your password below to create a new account.", "Register", "Exit");
I get the same error...
Reply
#9

Quote:
Originally Posted by Areax
Посмотреть сообщение
I get the same error...
Don't put = YELLOW, try putting the code I put in
Reply
#10

Quote:
Originally Posted by Kestro
Посмотреть сообщение
Don't put = YELLOW, try putting the code I put in
Stop acting like ur the only one helping the guy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)