Uklanjanje obicnog chata?

Započeo Teodor
5. Maj 2020. Zaključano
1,527
pregleda
20
postova
Teodor
4
Made Man
5. Maj 2020.
Problem(error/warning): zanima me kako da izbacim ovaj Chat, i da mi na tabu bude samo 1 boja
Dio skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem): https://prnt.sc/sbhow7
Speeak
5
Underboss
5. Maj 2020.
Funkcija SetPlayerColor seta igracevo ime u boju koju hoces.
https://wiki.sa-mp.com/wroot/index.php?title=SetPlayerColor&printable=yes
Teodor
4
Made Man
5. Maj 2020.
Sploxs wrote on May 5, 2020, 8:06 pm:
Funkcija SetPlayerColor seta igracevo ime u boju koju hoces.
https://wiki.sa-mp.com/wroot/index.php?title=SetPlayerColor&printable=yes

To, sad imam normalnu boju, ali kako ja da stavim samo 1 chat i to da bude IC chat?
Posto ja imam 2 Chata, defaulth koji je na 15km(lupio sam) i svoj IC
ShadowMortar
4
Shot Caller
5. Maj 2020.
public OnPlayerText( playerid, text[ ] ) {
// Tvoj kod za IC chat tude.
return ( false ); // Return false!
}
Speeak
5
Underboss
5. Maj 2020.
Posalji OnPlayerText da vidim sta si radio
Teodor
4
Made Man
5. Maj 2020.
ShadowMortar wrote on May 5, 2020, 8:25 pm:
public OnPlayerText( playerid, text[ ] ) {
// Tvoj kod za IC chat tude.
return ( false ); // Return false!
}

TOOO, Radi Care THX, imam jos jedan problem Kako da sklonim ovo dole na mapi?
https://prnt.sc/sbirdk
https://prnt.sc/sbirdk
https://prnt.sc/sbirdk
Vuzimir
5
Kingpin
5. Maj 2020.
Pod ongamemodeinit dodaj:
ShowPlayerMarkers(0);
Teodor
4
Made Man
6. Maj 2020.
Imam jedan problem
Ako je igrac u krugu od 10m videce ovu poruku dole, ako je udaljenjiji opet ce videti poruku ali Bez ID< kao da pise u SCMTA, Kako da fixam ovo?(IC chat je u pitanju)

new id;
format(string, sizeof(string), "[ID: %d] %s: %s ",id, GetName(playerid), text);
ProxDetector(10.0, playerid, string, -1);
return ( false ); // Return false!
Vuzimir
5
Kingpin
6. Maj 2020.
zamjeni new id sa:
new id = GetPlayerID(playerid);
Teodor
4
Made Man
6. Maj 2020.
Vuzimir wrote on May 6, 2020, 8:04 pm:
zamjeni new id sa:
new id = GetPlayerID(playerid);

error 017: undefined symbol "GetPlayerID"
Vuzimir
5
Kingpin
6. Maj 2020.
stock GetPlayerID(const Name[])
{
    for(new i; i    {
      if(IsPlayerConnected(i))
      {
        new pName2;
            GetPlayerName(i, pName2, sizeof(pName2));
        if(strcmp(Name, pName2, true)==0)
        {
          return i;
            }
        }
    }
    return -1;
}
Teodor
4
Made Man
6. Maj 2020.
Vuzimir wrote on May 6, 2020, 8:21 pm:
stock GetPlayerID(const Name[])
{
    for(new i; i    {
      if(IsPlayerConnected(i))
      {
        new pName2;
            GetPlayerName(i, pName2, sizeof(pName2));
        if(strcmp(Name, pName2, true)==0)
        {
          return i;
            }
        }
    }
    return -1;
}

ista linija samo drugi error...
error 035: argument type mismatch (argument 1)
Teodor
4
Made Man
6. Maj 2020.
Sve sto sam ubacio 🙂

new id = GetPlayerID(playerid);
format(string, sizeof(string), "[ID: %d] %s: %s ",id, GetName(playerid), text);
ProxDetector(10.0, playerid, string, -1);
return ( false ); // Return false!


stock GetPlayerID(const Name[])
{
    for(new i; i    {
      if(IsPlayerConnected(i))
      {
        new pName2;
        GetPlayerName(i, pName2, sizeof(pName2));
        if(strcmp(Name, pName2, true)==0)
        {
          return i;
            }
        }
    }
    return -1;
}
Vuzimir
5
Kingpin
6. Maj 2020.
Izvini, nisam gledao dobro, obrisi to sve sto sam ti poslao i dodaj sam ovo:
new id = playerid;
Teodor
4
Made Man
6. Maj 2020.
Vuzimir wrote on May 6, 2020, 8:34 pm:
Izvini, nisam gledao dobro, obrisi to sve sto sam ti poslao i dodaj sam ovo:
new id = playerid;

Nope ☹️, sve se lepo compile-a, ali opet nece, sad mi cak nece ni IC chat na blizinu samo se koristi onaj kao SCMTA

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha