[Pomoc]Boja za /a(Chat)

Započeo purgerrr, Decembar 12, 2014, 07:30:56 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:BF-RP "(Svoja od 0)"
Detaljan opis problema:Znaci radio sam admin system i napravio sam neke komande nisam sve ali nesto ipak je i sad napravio sam admin chat naravno e da testirao sam to sta sam napravio i imam jedna sitnica koja me smeta
kada pisem u serveru u /a mi izbacuje ovo npr ?3Admin Ivan_Majcen Ali u bijeloj boji
Zna li neko kako npr da promjenim u neku boju
Dio skripte:

CMD:a(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME], string[160];
    if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid, CRVENA,"[BF-RP]Nemozete koristi ovu komandu.");
    if(isnull(params)) return SendClientMessage(playerid, ZELENA,"/a [text]");
    GetPlayerName(playerid,sendername,sizeof(sendername));
    sendername[strfind(sendername,"_")] = ' ';
    format(string,160,"*%d Admin %s: %s",PlayerInfo[playerid][pAdmin],sendername,params);
    SendAdminMessage(-1, string);
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Slika 1 : http://prntscr.com/5fw4nr

SendAdminMessage(-1, string);

Umjesto -1 napises boju,nzm kako si ih definisao vjerovatno COLOR_RED crvena itd..


probaj ovako

format(string,160,"*%d "CRVENA"Admin %s"BIJELA": %s",PlayerInfo[playerid][pAdmin],sendername,params);

~Scritpter~Loading~75%~

~C++~Loading~40%~

~X_G1~Loaded~

  format(string,160,"*%d "COLOR_RED"Admin %s"COLOR_WHITE": %s",PlayerInfo[playerid][pAdmin],sendername,params);

probao sam ali izbacuje mi onda ovo
C:\Users\Anoymous\Desktop\dss\gamemodes\mj-rp.pwn(744) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Anoymous\Desktop\dss\gamemodes\mj-rp.pwn(744) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Anoymous\Desktop\dss\gamemodes\mj-rp.pwn(744) : warning 215: expression has no effect
C:\Users\Anoymous\Desktop\dss\gamemodes\mj-rp.pwn(744) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Anoymous\Desktop\dss\gamemodes\mj-rp.pwn(744) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.




Nemojte prosipati pamet. Ako hocete da pomognete coveku, pomozite. Ne treba vas da se tice sta on radi sa modom. U ostalom te stvari se tako i uce, tako sto radis nesto od 0 i upoznajes se sa strukturom.

Evo tebi definisane samp boje, ubaci ih na pocetku moda posle inlude definicija:


#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA


Poslednja Izmena: Decembar 12, 2014, 18:06:23 POSLE PODNE od Denis_Lapi

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Decki nema potrebe za kritiziranjem
Nije stvar u bojama vec imam te boje definirane i opet baca taj error a ti koji solis pamet prvo pitaj jesi definiro boje jesam definiro sam ih na pocetku pravljenja moda i opet nece prbo sam promjenit boje opet nece znate problem?

Denis_Lapi:
Upravu si ali ako hoce da je koristi u format(string,160,[color=red][b]"*%d "COLOR_RED"Admin %s"COLOR_WHITE": %s"[/b][/color],PlayerInfo[playerid][pAdmin],sendername,params);
Zar ne treba da stavi
#define COLOR_RED "{AA3333}"
Msm da doda ove "{}" a da izbaci FF i 0x

mozes i ovako msm kako ti je volja...
{colorpicker.combojabez#} %d {FFFFFF} %s
ovo sam ti dao primjer..
colorpicker.com imas i tu uzimas boje i naravno u {} pises bez #

Radi sa hex bojana, sta se onda hvatas za definisane.

format(string,160,"{3399ff}*%d Admin %s: %s",PlayerInfo[playerid][pAdmin],sendername,params);


Evo ti link color picker-a. Uzmes kod boje i ubacus ispred reci koju zelis da ti oboji i onda ce ti kod obojiti string.
http://www.w3schools.com/tags/ref_colorpicker.asp

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com