SA-MP Forums Archive
Color 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Color PROBLEM! (/showthread.php?tid=273087)



Color PROBLEM! - samtey - 31.07.2011

Hi!

I got a problem with my colors, here the errors:

Code:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(303) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(304) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(305) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(306) : error 035: argument type mismatch (argument 3)
Okay, and here my Code:

pawn Code:
SendClientMessage(playerid,-1,COLOR_YELLOW,"~~~Gangwars and Ganglife at Night~~~");
    SendClientMessage(playerid,-1,COLOR_YELLOW,"Server by EazyE alias samtey!"
    SendClientMessage(playerid,-1,COLOR_YELLOW,"If you are new, please type /help for knowing what to do!");
    SendClientMessage(playerid,-1,COLOR_YELLOW,"Type /commands to see the list of commands!");
I defined YELLOW!

pawn Code:
#define COLOR_YELLOW 0xFFFF00FF
So why doesn't it work? /:


Re: Color PROBLEM! - iPLEOMAX - 31.07.2011

Why all "-1"s ?
we use -1 sometimes as color, but you already defined a color so no need to put that...

SendClientMessage( playerid, COLOR, "TEXT");

pawn Code:
SendClientMessage(playerid,COLOR_YELLOW,"~~~Gangwars and Ganglife at Night~~~");
SendClientMessage(playerid,COLOR_YELLOW,"Server by EazyE alias samtey!"
SendClientMessage(playerid,COLOR_YELLOW,"If you are new, please type /help for knowing what to do!");
SendClientMessage(playerid,COLOR_YELLOW,"Type /commands to see the list of commands!");



Re: Color PROBLEM! - hillko - 31.07.2011

lol
HTML Code:
SendClientMessage(playerid,COLOR_YELLOW,"Server by EazyE alias samtey!"



HTML Code:
SendClientMessage(playerid,COLOR_YELLOW,"~~~Gangwars and Ganglife at Night~~~");
SendClientMessage(playerid,COLOR_YELLOW,"Server by EazyE alias samtey!");
SendClientMessage(playerid,COLOR_YELLOW,"If you are new, please type /help for knowing what to do!");
SendClientMessage(playerid,COLOR_YELLOW,"Type /commands to see the list of commands!");



Re: Color PROBLEM! - MoroDan - 31.07.2011

Quote:
Originally Posted by samtey
View Post
Hi!

I got a problem with my colors, here the errors:

Code:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(303) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(304) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(305) : error 035: argument type mismatch (argument 3)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(306) : error 035: argument type mismatch (argument 3)
Okay, and here my Code:

pawn Code:
SendClientMessage(playerid,-1,COLOR_YELLOW,"~~~Gangwars and Ganglife at Night~~~");
    SendClientMessage(playerid,-1,COLOR_YELLOW,"Server by EazyE alias samtey!"
    SendClientMessage(playerid,-1,COLOR_YELLOW,"If you are new, please type /help for knowing what to do!");
    SendClientMessage(playerid,-1,COLOR_YELLOW,"Type /commands to see the list of commands!");
I defined YELLOW!

pawn Code:
#define COLOR_YELLOW 0xFFFF00FF
So why doesn't it work? /:
You wrote 4 parameters. You must have only 3. Delete the -1, from all.

PHP Code:
    SendClientMessage(playeridCOLOR_YELLOW"~~~Gangwars and Ganglife at Night~~~");
    
SendClientMessage(playeridCOLOR_YELLOW"Server by EazyE alias samtey!"
    
SendClientMessage(playeridCOLOR_YELLOW"If you are new, please type /help for knowing what to do!");
    
SendClientMessage(playeridCOLOR_YELLOW"Type /commands to see the list of commands!");