SA-MP Forums Archive
Unknown command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unknown command (/showthread.php?tid=86056)



Unknown command - argon - 11.07.2009

In every command, although they work It appears "SERVER:UNKNOWN COMMAND"

Example of commands
Quote:

if(strcmp(cmdtext, "/war", true) == 0)
if (IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid),153.382 8,1888.4977,18.2910);
} else {
SetPlayerPos(playerid,153.3828,1888.4977,18.2910);
return 1;
}

Quote:

if(strcmp(cmdtext, "/help", true) == 0)
if (IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid, 0xFFFF00AA, "www.argss.tk /teleports /stunts and races /races /vehicles /casino /dm");
} else {
SendClientMessage(playerid, 0xFFFF00AA, "www.argss.tk /teleports /stunts and races /races /vehicles /casino /dm");
return 1;
}




Re: Unknown command - saiberfun - 11.07.2009


pawn Код:
if(strcmp(cmdtext, "/war", true) == 0)
{
 if (IsPlayerInAnyVehicle(playerid)) {
  SetVehiclePos(GetPlayerVehicleID(playerid),153.3828,1888.4977,18.2910);
  } else {
  SetPlayerPos(playerid,153.3828,1888.4977,18.2910);
  return 1;
}
}
pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
  if (IsPlayerInAnyVehicle(playerid)) {
  SendClientMessage(playerid, 0xFFFF00AA, "http://www.argss.tk[url=http://] /teleports /stunts and races /races /vehicles /casino /dm");
  } else {
  SendClientMessage(playerid, 0xFFFF00AA, "
http://www.argss.tk[url=http://][url=http://] /teleports /stunts and races /races /vehicles /casino /dm");
  return 1;
}
}



Re: Unknown command - argon - 11.07.2009

ok


Re: Unknown command - argon - 11.07.2009

Dang, it gave 26 errors
Can you add my xfire for us to talk for you to help me solve this?
my xfire is zomg2


Re: Unknown command - saiberfun - 11.07.2009

Quote:
Originally Posted by argon
Dang, it gave 26 errors
Can you add my xfire for us to talk for you to help me solve this?
my xfire is zomg2
uhm now wait imma check the brackets
Edit:
pawn Код:
if(strcmp(cmdtext, "/war", true) == 0)
{
  if (IsPlayerInAnyVehicle(playerid)) {
  SetVehiclePos(GetPlayerVehicleID(playerid),153.3828,1888.4977,18.2910);
  }
  else
  SetPlayerPos(playerid,153.3828,1888.4977,18.2910);
  return 1;
}
pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
  if (IsPlayerInAnyVehicle(playerid)) {
  SendClientMessage(playerid, 0xFFFF00AA, "http://www.argss.tk /teleports  /stunts and races /races /vehicles /casino /dm");
  }
  else
  SendClientMessage(playerid, 0xFFFF00AA, "
http://www.argss.tk[url=http://] /teleports  /stunts and races /races /vehicles /casino /dm");
  return 1;
}
this should work


Re: Unknown command - argon - 11.07.2009

lemme check
btw anyways
add my xfire so if it dont work i tell you
my xfire:zomg2


Re: Unknown command - BMUK - 11.07.2009

No matter, already answered! :P


Re: Unknown command - argon - 11.07.2009

so which ine works?
BMUK's or saiberfun's?


Re: Unknown command - argon - 11.07.2009

BMUK your gives 1 warning of unreachable code
Lemme try saiberfun's


Re: Unknown command - saiberfun - 11.07.2009

can't se BMUK's one
but mine should work