Unknown command
#1

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;
}

Reply
#2


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;
}
}
Reply
#3

ok
Reply
#4

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
Reply
#5

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
Reply
#6

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

No matter, already answered! :P
Reply
#8

so which ine works?
BMUK's or saiberfun's?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)