[Pomoc] Boja

Započeo Reggie, April 03, 2013, 20:41:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Od OnPlayerText pa nadalje ima 3000 linija, kako da ti dam?

C:\Users\Ultimate\Desktop\gm2\gamemodes\MG.pwn(51632) : error 017: undefined symbol "string"
C:\Users\Ultimate\Desktop\gm2\gamemodes\MG.pwn(51632) : error 017: undefined symbol "string"
C:\Users\Ultimate\Desktop\gm2\gamemodes\MG.pwn(51632) : error 029: invalid expression, assumed zero
C:\Users\Ultimate\Desktop\gm2\gamemodes\MG.pwn(51632) : fatal error 107: too many error messages on one line


Gdje da to dodam?I kada to dodam onda da stavim ono sto si mi ti dao pod OnPlayerText?

sada imam samo 1 eror C:\Users\Ultimate\Desktop\gm2\gamemodes\MG.pwn(51633) : error 017: undefined symbol "sendername"

stavi ovo na kraj skripte stock GetPlayerNameEx(playerid)
{
    new string[24];
    GetPlayerName(playerid,string,24);
    new str[24];
    strmid(str,string,0,strlen(string),24);
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if (str[i] == '_') str[i] = ' ';
    }
    return str;
}
i umesto sendername stavi GetPlayerNameEx(playerid)

editovat cu da test samo
Poslednja Izmena: April 04, 2013, 13:37:45 POSLE PODNE od [UP] Amar Kovacic

Citat: Blaeks poslato April 04, 2013, 13:34:02 POSLE PODNE

}[/code] i umesto sendername stavi GetPlayerNameEx(playerid)
koje sendername ima ih 2

{
if(AdminDuty[playerid] == 1)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{FFAF00}%s kaze:  {FFFFFF}%s",sendername, text);
ProxDetector(20.0, playerid, string,-1,-1,-1,-1,-1);
}



{
if(AdminDuty[playerid] == 1)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{FFAF00}%s kaze:  {FFFFFF}%s",sendername, text);
ProxDetector(20.0, playerid, string,-1,-1,-1,-1,-1);
}


Evo ti ako mozes ti mi stavi -.-"

jbt {
if(AdminDuty[playerid] == 1)
{
new string[128];
format(string, sizeof(string), "{FFAF00}%s kaze:  {FFFFFF}%s",GetPlayerNameEx(playerid), text);
ProxDetector(20.0, playerid, string,-1,-1,-1,-1,-1);
}

sada kad sam aduty i pisem na obican IC chat napise mi dva puta za redom istu recenicu npr Prvu recenicu narandzastom bojom ipsise drugu bijelom.Meni treba da kada se na /b chat pise i da ne ispisuje dva puta

(narandzasta) Amar Kovacic kaze: a

(bijela) Amar Kovacic kaze: a
Poslednja Izmena: April 04, 2013, 14:36:08 POSLE PODNE od [UP] Amar Kovacic