Whats wrong with Command
#1

Hi when i use that Command always comes "Unknown Command".. whats wrong ?


if(strcmp(cmd, "/buyskin", true) == 0)
{
if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.257 || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "BENUTZUNG: /buyskin [skinid]");
return 1;
}
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "BENUTZUNG: /buyskin [skinid]");
return 1;
}
new skin = strval(tmp);
if(!IsValidSkin(skin)) return SendClientMessage(playerid, COLOR_RED, "Skins sind nicht verfьgbar!");
SetPlayerSkin(playerid, skin);
OnPlayerUpdateIG(playerid);
SendClientMessage(playerid, COLOR_RED, "Skin changed!");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Spieler wurde nicht gefunden!");
}
}
return 1;
}
Reply
#2

Howmany commands do you have in your script?
Reply
#3

160-190
Reply
#4

When you have alot of commands, It starts to say that
Reply
#5

Anyway to fix ?
Reply
#6

Not that i know of.
Sorry dood
Reply
#7

okay deleted some commands .. it works.. but there always come that

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "BENUTZUNG: /buyskin [skinid]");
return 1;
}

whats wrong
Reply
#8

Well i have 2 commands and it fucks up !
Reply
#9

pawn Код:
tmp = strtok(cmdtext, idx);
       if(!strlen(tmp))
       {
         SendClientMessage(playerid, COLOR_RED, "BENUTZUNG: /buyskin [skinid]");
         return 1;
       }
uhhmm command problem is fixxed.. always that message comes and i get not my skin
Reply
#10

uhhmm command problem is fixxed.. always that message comes and i do not get my skin i choosed, just cj skin
pawn Код:
if(strcmp(cmd, "/buyskin", true) == 0)
        {
          if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
          {
                new skin = strval(tmp);
                if(!IsValidSkin(skin)) return SendClientMessage(playerid, COLOR_RED, "Skins not available!");
                SetPlayerSkin(playerid, skin);
                OnPlayerUpdateIG(playerid);
                SendClientMessage(playerid, COLOR_RED, "Skin changed!");
            }
            else
            {
                  SendClientMessage(playerid, COLOR_RED, "U r not in a Binco!");
            }
          return 1;
        }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)