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


Messages In This Thread
Whats wrong with Command - by CarbonCry - 07.03.2009, 11:26
Re: Whats wrong with Command - by Snyper18 - 07.03.2009, 11:29
Re: Whats wrong with Command - by CarbonCry - 07.03.2009, 11:35
Re: Whats wrong with Command - by Snyper18 - 07.03.2009, 11:37
Re: Whats wrong with Command - by CarbonCry - 07.03.2009, 12:14
Re: Whats wrong with Command - by Snyper18 - 07.03.2009, 12:22
Re: Whats wrong with Command - by CarbonCry - 07.03.2009, 15:20
Re: Whats wrong with Command - by harly - 07.03.2009, 15:40
Re: Whats wrong with Command - by CarbonCry - 07.03.2009, 15:41
Re: Whats wrong with Command - by CarbonCry - 14.03.2009, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)