[Pomoc] Server Unknown command

Započeo Milan || WG
9. Mar. 2013. Zaključano
305
pregleda
3
postova
Vinnieâ„¢
4
Enforcer
9. Mar. 2013.
Skripta: CLRP
Problem: Kad kucam /iznuda i postavim nekog za iznudu komanda radi ali uz to mi nepotrebno dođe i server unknown command nezz zbog cega?
Dio Skripte:
if(strcmp(cmd, "/iznuda", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete biznis");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
    SendClientMessage(playerid, COLOR_WHITE, "Koristi: /iznuda [playerid/Dio Imena] (ili 555 za Niko)");
    return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
for(new b = 0; b < sizeof(SBizzInfo); b++)
if(giveplayerid != INVALID_PLAYER_ID)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        format(string, sizeof(string), ""COL_YELLOW"Dali ste iznudu: %s-u. ",giveplayer);
        SendClientMessage(playerid, COLOR_WHITE, string);
        format(string, sizeof(string), ""COL_YELLOW"%s vam je dao iznudu svoje firme.",sendername);
                        DateProp(playerid);
OnPropUpdate();
OnPropTextdrawUpdate(3, b);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
        if (bouse >= 100)
{
    format(string, sizeof(string), "%s",giveplayer);
strmid(SBizzInfo[bouse-100], string, 0, sizeof(string), 255);
format(string, sizeof(string), "iznuda uzima %s",SBizzInfo[bouse-100]);

OnPropTextdrawUpdate(3, bouse);
}
else
{
    format(string, sizeof(string), "%s",giveplayer);
strmid(BizzInfo, string, 0, sizeof(string), 255);
format(string, sizeof(string), "iznuda uzima %s",BizzInfo);
OnPropTextdrawUpdate(2, bouse);
}
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
    }
}
else if(giveplayerid == 555)
{
    if (bouse >= 100)
{
    format(string, sizeof(string), "Niko");
strmid(SBizzInfo[bouse-100], string, 0, sizeof(string), 255);
format(string, sizeof(string), "iznuda uzima %s",SBizzInfo[bouse-100]);
}
else
{
    format(string, sizeof(string), "Niko");
strmid(BizzInfo, string, 0, sizeof(string), 255);
format(string, sizeof(string), "iznuda uzima %s",BizzInfo);
}
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Igrac je offline !");
    return 1;
}
}
return 1;
}
Slike// Video//
Ricky_Cortez
4
Shot Caller
9. Mar. 2013.
meni se to isto događa sa /rentmoto,komanda normalno radi ali se pojavi isto "server unknow commande" ima netko da zna kako da maknemo to da ne otvaram sad novu temu
Johnâ„¢
5
Godfather
9. Mar. 2013.
Probaj ovak':
if(strcmp(cmd, "/iznuda", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
        new bouse = PlayerInfo;
        if (bouse == 255)
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete biznis");
            return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koristi: /iznuda [playerid/Dio Imena] (ili 555 za Niko)");
            return 1;
        }
        giveplayerid = ReturnUser(tmp);
        if(IsPlayerConnected(giveplayerid))
        {
        for(new b = 0; b < sizeof(SBizzInfo); b++)
            if(giveplayerid != INVALID_PLAYER_ID)
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), ""COL_YELLOW"Dali ste iznudu: %s-u. ",giveplayer);
                SendClientMessage(playerid, COLOR_WHITE, string);
                format(string, sizeof(string), ""COL_YELLOW"%s vam je dao iznudu svoje firme.",sendername);
                        DateProp(playerid);
                  OnPropUpdate();
                  OnPropTextdrawUpdate(3, b);
              SendClientMessage(giveplayerid, COLOR_WHITE, string);
                if (bouse >= 100)
              {
                  format(string, sizeof(string), "%s",giveplayer);
                  strmid(SBizzInfo[bouse-100], string, 0, sizeof(string), 255);
                  format(string, sizeof(string), "iznuda uzima %s",SBizzInfo[bouse-100]);

                  OnPropTextdrawUpdate(3, bouse);
              }
              else
              {
                  format(string, sizeof(string), "%s",giveplayer);
                  strmid(BizzInfo, string, 0, sizeof(string), 255);
                  format(string, sizeof(string), "iznuda uzima %s",BizzInfo);
                  OnPropTextdrawUpdate(2, bouse);
              }
              OnPropUpdate();
              SendClientMessage(playerid, COLOR_WHITE, string);
            }
        }
        else if(giveplayerid == 555)
        {
            if (bouse >= 100)
            {
                format(string, sizeof(string), "Niko");
              strmid(SBizzInfo[bouse-100], string, 0, sizeof(string), 255);
              format(string, sizeof(string), "iznuda uzima %s",SBizzInfo[bouse-100]);
            }
            else
            {
                format(string, sizeof(string), "Niko");
              strmid(BizzInfo, string, 0, sizeof(string), 255);
              format(string, sizeof(string), "iznuda uzima %s",BizzInfo);
            }
            OnPropUpdate();
            SendClientMessage(playerid, COLOR_WHITE, string);
        }
        else SendClientMessage(playerid, COLOR_GREY, "  Igrac je offline !");
      }
      return 1;
  }

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha