Color PROBLEM!
#1

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? /:
Reply
#2

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!");
Reply
#3

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!");
Reply
#4

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!"); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)