Defines in Dialog title or body?
#10

Quote:
Originally Posted by Meller
Посмотреть сообщение
Got these errors now:
NCRP.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
NCRP.pwn(89) : error 001: expected token: ";", but found "-string-"
NCRP.pwn(89) : warning 215: expression has no effect
NCRP.pwn(89) : warning 215: expression has no effect
NCRP.pwn(89) : warning 215: expression has no effect
NCRP.pwn(89) : error 001: expected token: ";", but found ")"
NCRP.pwn(89) : fatal error 107: too many error messages on one line


The line:

PHP код:
ShowPlayerDialog(playeridD_LoginDIALOG_STYLE_INPUT"{82CAFF}" ServerName"Welcome back to " ServerNameShorted ", " UserRPName(playerid" !\nInsert your password in order to start the fun!\n\nPassword Attempts left: " ,"Login","Quit"); 
Why don't you do a string, more easier, like that :
PHP код:
new string[300];
format(stringsizeof(string), {82CAFF"%s Welcome back to %s, %s !\nInsert your password in order to start the fun!\n\nPassword Attempts left: %i"ServerNameServerNameShortedUserRPName(playerid), AttemptsLeft);
ShowPlayerDialog(playeridD_LoginDIALOG_STYLE_INPUTstring ,"Login","Quit"); 
You errors message come from you put comma. I mean ShowPlayerDialog is like SendClientMessage/SendClientMessageToAll, you can't put parameter in your string.
I hope this helped you.
Reply


Messages In This Thread
Defines in Dialog title or body? - by Luicy. - 13.05.2016, 16:08
Re: Defines in Dialog title or body? - by BloodyRP - 13.05.2016, 16:12
Re: Defines in Dialog title or body? - by Konstantinos - 13.05.2016, 16:25
Re: Defines in Dialog title or body? - by Gammix - 13.05.2016, 16:25
Re: Defines in Dialog title or body? - by Luicy. - 13.05.2016, 16:28
Re: Defines in Dialog title or body? - by Luicy. - 13.05.2016, 16:31
Re: Defines in Dialog title or body? - by Gammix - 13.05.2016, 16:39
Re: Defines in Dialog title or body? - by Luicy. - 13.05.2016, 16:48
Re: Defines in Dialog title or body? - by Luicy. - 13.05.2016, 17:03
Re: Defines in Dialog title or body? - by Dayrion - 13.05.2016, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)