DM Script Problem -
KaiserOfGermany - 19.05.2015
Hi, i Have this Filterscript:
http://pastebin.com/Uhqc3uaC
But it give me this Problem:
1) error 001: expected token: "-string end-", but found "-identifier-" x2
2) warning 215: expression has no effect
3) error 001: expected token: ";", but found "-integer value-"
4) fatal error 107: too many error messages on one line
Please Help Me...
Re: DM Script Problem -
KaiserOfGermany - 19.05.2015
Someone can Help ?
Re: DM Script Problem -
Kqly - 19.05.2015
Код:
new Float:MMSpawns[][4] = {
{131.7872, 1062.7228, 29.4692,90.5000},
{131.2800, 1031.1852, 29.4692,2.7241},
{89.4745, 1031.3414, 29.8652,177.5425},
{90.0045, 1063.1929, 30.3272,6.7742},
{90.1623, 1097.7803, 30.3272,95.4250},
{131.8577, 1097.4308, 30.3272,353.9040},
{111.2754, 1077.2242, 14.9312},
{111.1654, 1053.0736, 14.9312}
};
try add angle
Код:
{111.2754, 1077.2242, 14.9312},
{111.1654, 1053.0736, 14.9312}
Re: DM Script Problem -
[LvZ]Free - 19.05.2015
after removing "0xFFFF00AA" and "0xFFFF00AA" from
Quote:
if(InMM[playerid] == 1)return SendClientMessage( playerid, -1, ""0xFFFF00AA"ERROR: "0xFFFF00AA"You are already in a DM arena! Type /leave to exit!");
|
this line it seems to work fine.
Re: DM Script Problem -
7Ahmad7 - 19.05.2015
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.
Re: DM Script Problem -
icra - 20.05.2015
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!" );
Re: DM Script Problem -
7Ahmad7 - 20.05.2015
Quote:
Originally Posted by icra
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!" );
|
Oh yeah,I forgot that first and last 2 characters ,Told you,my first fixing a code
Anyway,I hope me and icra helped.
Re: DM Script Problem -
KaiserOfGermany - 20.05.2015
thx guys you are the best
Re: DM Script Problem -
Konstantinos - 20.05.2015
Keep in mind that the function have already a parameter "color" so you won't have to color embedding at the beginning of the string. Also the alpha transparency don't work with client messages.
pawn Код:
if (InMM[playerid]) return SendClientMessage(playerid, 0xFFFF00FF, "ERROR: You are already in a DM arena! Type /leave to exit!");
If you want to have "ERROR: " in yellow and the rest with white or any other color, then yes - use color embedding:
https://sampwiki.blast.hk/wiki/Colour_Embedding