help|SEVER: 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: help|SEVER: Unknown command? (
/showthread.php?tid=273232)
help|SEVER: Unknown command? -
shahartal - 31.07.2011
This code :
pawn Код:
if (strcmp("/DelNeon", cmdtext, true, 10) == 0)
  {
    if(!dini_Exists(NeonFile(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid,0xffffffff,"айп мшлб жд раеп");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xffffffff,"аъд ма бшлб");
    dini_Remove(NeonFile(GetPlayerVehicleID(playerid)));
    DestroyObject(ANeon[GetPlayerVehicleID(playerid)]);
    RemoveObjectsFromVehicle(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid,0xffffffff,"озчъ аъ драерйн щдйе болерйъ");
    return 1;
  }
get me SEVER: Unknown command
Re: help|SEVER: Unknown command? -
Jefff - 31.07.2011
Its array crash, show the last print
pawn Код:
if(strcmp("/DelNeon", cmdtext, true, 8) == 0)
{
  print("1");
  if(!dini_Exists(NeonFile(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid,0xffffffff,"a`йi" i`?лб ?д ?a`a*i"");
  print("2");
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xffffffff,"a`ъд i`a` б?лб");
  print("3");
  dini_Remove(NeonFile(GetPlayerVehicleID(playerid)));
  print("4");
  DestroyObject(ANeon[GetPlayerVehicleID(playerid)]);
  print("5");
  RemoveObjectsFromVehicle(GetPlayerVehicleID(playerid));
  print("6");
  SendClientMessage(playerid,0xffffffff,"озчъ a`ъ д?a`a*?йн u`дйa* болa*?йъ");
  return 1;
}
Re: help|SEVER: Unknown command? -
shahartal - 01.08.2011
i dont get it, what you do? dont work S:
Respuesta: help|SEVER: Unknown command? -
RatHack - 01.08.2011
Post your
pawn Код:
Public OnPlayerCommandText
Re: help|SEVER: Unknown command? -
Kitten - 01.08.2011
Hes debugging the command with
print He's asking you to show the last print for the command
Re: help|SEVER: Unknown command? -
shahartal - 02.08.2011
if i do /delneon and the car dont have a neon it's print 1 (work Properly - show the correctly message)
if i dont in a car and do /delneon it's print 1:
it's show 1 but he need show 2 S:
if i do /delneon and the car have a neon it's Print 2 3 4 :
it's should do the 5,6 too..
why it do just the 2,3,4?
Re: help|SEVER: Unknown command? -
shahartal - 02.08.2011
Up =(
Re: help|SEVER: Unknown command? -
shahartal - 03.08.2011
UP
Re: help|SEVER: Unknown command? -
shahartal - 04.08.2011
UP S:
Re: help|SEVER: Unknown command? -
MadeMan - 04.08.2011
Show