DM Script Problem
#6

Quote:
Originally Posted by 7Ahmad7
Посмотреть сообщение
Hey I'm not a scripter (cool)

but that is my first time to fix a bug,look,What should you do is to :

on line 57:
pawn Код:
if(InMM[playerid] == 1)return SendClientMessage( playerid, -1, ""0xFFFF00AA"ERROR: "0xFFFF00AA" You are already in a DM arena! Type /leave to exit!" );
replace it with this:

pawn Код:
if(InMM[playerid] == 1)return SendClientMessage( playerid, -1,"{0xFFFF00AA}ERROR: {0xFFFF00AA} You are already in a DM arena! Type /leave to exit!" );
Means to make the colors inside a { } not in "" ,because that made it doubled "

If it helped give me rep.Thanks for trying my fix.
Yep, that was the problem, but he was still trying to use ARGB colors into a existing string.
This is not allowed, because you have got to use RGB colors.

To convert an ARGB color to RGB, just remove the last 2 and the first 2 characters from the string.
Example:
0xFFFF00AA = FFFF00

The code will become:
Код:
pawn Код:
if(InMM[playerid] == 1)return SendClientMessage( playerid, -1,"{FFFF00}ERROR: {FFFF00} You are already in a DM arena! Type /leave to exit!" );
Reply


Messages In This Thread
DM Script Problem - by KaiserOfGermany - 19.05.2015, 15:27
Re: DM Script Problem - by KaiserOfGermany - 19.05.2015, 17:47
Re: DM Script Problem - by Kqly - 19.05.2015, 18:02
Re: DM Script Problem - by [LvZ]Free - 19.05.2015, 18:12
Re: DM Script Problem - by 7Ahmad7 - 19.05.2015, 22:23
Re: DM Script Problem - by icra - 20.05.2015, 06:34
Re: DM Script Problem - by 7Ahmad7 - 20.05.2015, 11:10
Re: DM Script Problem - by KaiserOfGermany - 20.05.2015, 18:10
Re: DM Script Problem - by Konstantinos - 20.05.2015, 18:24

Forum Jump:


Users browsing this thread: 7 Guest(s)