Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Legacyy poslato Februar 15, 2019, 23:13:38 POSLE PODNE

Naslov: Pomoc oko A-Chata
Poruka od: Legacyy poslato Februar 15, 2019, 23:13:38 POSLE PODNE
Problem(error/warning): error 035: argument type mismatch (argument 2)
Dio skripte; 1113
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):[pawn]CMD:a(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,"Nisi admin!");
        new string[128],text[128],ime[MAX_PLAYER_NAME];
        if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, "/a [Text]");
         format(string, sizeof(string), "[A-Chat]%s: %s", GetPlayerName(playerid,ime,sizeof(ime)),text);
         foreach (Player, i)
   {
       if(PlayerInfo[playerid][pAdmin] > 0)
       {
         SendClientMessage(i, -1, string);
      }
   }
        return 1;
}[/pawn] To je cela CMD.
Slika/video ingame problema(obavezno ako je ingame problem)://
Naslov: Odg: Pomoc oko A-Chata
Poruka od: lucius poslato Februar 15, 2019, 23:16:35 POSLE PODNE
if(!PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, -1, "Nisi admin!");
Naslov: Odg: Pomoc oko A-Chata
Poruka od: Legacyy poslato Februar 15, 2019, 23:19:43 POSLE PODNE
Hvala,Fixano!

LOCK!