[Pomoc]PD Duznost

Započeo nikolaaa16, Februar 15, 2014, 15:44:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:EGRP 2013 by Farkias
Detaljan opis problema:Sta treba da uradim da clanovima PD bude plavo ime kad kucaju /duznost
Dio skripte:CMD:duznost(playerid, params[])
{
    //#pragma unused help
//#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"FarkiAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[256];
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(!IsPlayerInRangeOfPoint(playerid, 4.0,1456.8413,-1761.3394,3285.2859)) return SendClientMessage(playerid,-1,""PLAVA"(GRESKA) "SIVA"Niste u prostoriji za uzimanje duznosti!");
if(PolicajacNaDuznosti[playerid] == 0)
{
if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "* Policajac %s uzima znacku i pistolj iz ormarica.", GetName(playerid));
}
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SCM(playerid,-1,""PLAVA"[LSPD] "BELA"Sada ste na duznosti!");
g_GivePlayerWeapon(playerid,24,150);
g_GivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
PolicajacNaDuznosti[playerid] = 1;
}
else if(PolicajacNaDuznosti[playerid] == 1)
{
if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "* Policajac %s stavlja pistolj i znacku u svoj ormaric.", GetName(playerid));
}
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SCM(playerid,-1,""PLAVA"[LSPD] "BELA"Vise niste na duznosti!");
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
PolicajacNaDuznosti[playerid] = 0;
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Februar 15, 2014, 15:44:57 POSLE PODNE od nikolaaa16

Dodaj ovu tu negde gde mu daje oruzje i to
SetPlayerColor(playerid, kod za sinu boju);

CMD:duznost(playerid, params[])
{
    //#pragma unused help
//#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"FarkiAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[256];
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(!IsPlayerInRangeOfPoint(playerid, 4.0,1456.8413,-1761.3394,3285.2859)) return SendClientMessage(playerid,-1,""PLAVA"(GRESKA) "SIVA"Niste u prostoriji za uzimanje duznosti!");
if(PolicajacNaDuznosti[playerid] == 0)
{
if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "* Policajac %s uzima znacku i pistolj iz ormarica.", GetName(playerid));
}
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SCM(playerid,-1,""PLAVA"[LSPD] "BELA"Sada ste na duznosti!");
g_GivePlayerWeapon(playerid,24,150);
g_GivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 99.0);
                SetPlayerColor(playerid, PLAVA);
g_SetPlayerHealth(playerid, 99.0);
PolicajacNaDuznosti[playerid] = 1;
}
else if(PolicajacNaDuznosti[playerid] == 1)
{
if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "* Policajac %s stavlja pistolj i znacku u svoj ormaric.", GetName(playerid));
}
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SCM(playerid,-1,""PLAVA"[LSPD] "BELA"Vise niste na duznosti!");
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
PolicajacNaDuznosti[playerid] = 0;
}
return 1;
}

Error : error 035: argument type mismatch (argument 2)

Linija: SetPlayerColor(playerid, PLAVA);

Jel zna neko da popravio ovo ?
Nesto sam izostavio,al ne znam sta :D

Stavi ovako.

SetPlayerColor(playerid, 0x3290A6FF);