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



ShowPlayerDialog Problem :/ - Areax - 02.04.2013

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


Re: ShowPlayerDialog Problem :/ - Kestro - 02.04.2013

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



Re: ShowPlayerDialog Problem :/ - FunnyBear - 02.04.2013

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


Re: ShowPlayerDialog Problem :/ - thefatshizms - 02.04.2013

Remove "COLOR_YELLOW"

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


Re: ShowPlayerDialog Problem :/ - Areax - 02.04.2013

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


Re: ShowPlayerDialog Problem :/ - Kestro - 02.04.2013

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



Re: ShowPlayerDialog Problem :/ - FunnyBear - 02.04.2013

In the text add {E8FC03}

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


Re: ShowPlayerDialog Problem :/ - Areax - 02.04.2013

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...


Re: ShowPlayerDialog Problem :/ - Kestro - 02.04.2013

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


Re: ShowPlayerDialog Problem :/ - FunnyBear - 02.04.2013

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