Colours in Dialogs???
#1

Ive been trying for about 20 mins now, no luck.

Heres the code, and heres the error.

pawn Код:
ShowPlayerDialog(playerid,cred_dialog,COLOR_3D_GREENYELLOW,DIALOG_STYLE_MSGBOX,"Server Credits","Lolrofl - Scripting whole server/Ideas\nBETA Tester - Lorenc_\nBETA Tester - [RTA]_BasX \nBETA Tester - selten98\nCode Cleaner - Shadow™","OK","Cancel");

and error,

C:\Users\Will\Desktop\San Andreas Stuntz by Lolrofl\gamemodes\tst3.pwn(495) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Dialogs does not support colors for now
Reply
#3

Oh

On another server, the dialog had colours
Reply
#4

It didn't. Colors are not supported in dialogs for now.

E: Are you sure it wasn't a textdraw you saw on the another server?

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#5

You cant include colours in dialogs. Dialogs are just GUI Images (which can be edited by the player only by editing samp_gui.png in the San Andreas Installation folder)

You ShowPlayerDialog should be like this:

pawn Код:
ShowPlayerDialog(playerid,cred_dialog,DIALOG_STYLE_MSGBOX,"Server Credits","Lolrofl - Scripting whole server/Ideas\nBETA Tester - Lorenc_\n\nBETA Tester - selten98\nCode Cleaner - Shadow™","OK","Cancel");
I havent tested but a quick reference to the SAMP Wiki shows that the above code would work

Ash!
Reply
#6

wtf? whats this server ip.
Reply
#7

Quote:
Originally Posted by Kar
Посмотреть сообщение
wtf? whats this server ip.
I think he remembers wrong. You can't add colors into a dialog
Reply
#8

Quote:
Originally Posted by Jakku
Посмотреть сообщение
It didn't. Colors are not supported in dialogs for now.

E: Are you sure it wasn't a textdraw you saw on the another server?

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
on second thoughts, i think it was a textdraw

my bad
Reply
#9

Quote:
Originally Posted by funky1234
Посмотреть сообщение
You cant include colours in dialogs. Dialogs are just GUI Images (which can be edited by the player only by editing samp_gui.png in the San Andreas Installation folder)

You ShowPlayerDialog should be like this:

pawn Код:
ShowPlayerDialog(playerid,cred_dialog,DIALOG_STYLE_MSGBOX,"Server Credits","Lolrofl - Scripting whole server/Ideas\nBETA Tester - Lorenc_\n\nBETA Tester - selten98\nCode Cleaner - Shadow™","OK","Cancel");
I havent tested but a quick reference to the SAMP Wiki shows that the above code would work

Ash!

i know how to fix the code, i was only wanting to see if you can add colours
Reply
#10

Quote:
Originally Posted by Lolrofl
Посмотреть сообщение
i know how to fix the code, i was only wanting to see if you can add colours
Oh, my bad XD - i miss read the thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)