need a command to exit a car
#7

Quote:
Originally Posted by Jakku
pawn Код:
else if (streq(cmd,"/exit")) {
      new text[256];
      RemovePlayerFromVehicle(playerid);
      format(text,sizeof text,"You exited from your vehicle!");
      SendClientMessagel(playerid,COLOR_COLOR);
      return 1;
      }
Fail, why make a variable with 256 cells?! format is useless too...
Do you even know the player has defined cmd?
pawn Код:
if(!strcmp(cmdtext,"/exit",true)){
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "You aren't in a vehicle!");
  RemovePlayerFromVehicle(playerid);
  TogglePlayerControllable(playerid, true); // if frozen
  return SendClientMessage(playerid, 0xFFFFFFAA, "Your Text");
}
Reply


Messages In This Thread
need a command to exit a car - by myandyou - 28.05.2009, 10:15
Re: need a command to exit a car - by member - 28.05.2009, 10:19
Re: need a command to exit a car - by Jakku - 28.05.2009, 10:24
Re: need a command to exit a car - by Gappy - 28.05.2009, 10:24
Re: need a command to exit a car - by mannu - 28.05.2009, 10:24
Re: need a command to exit a car - by myandyou - 28.05.2009, 10:37
Re: need a command to exit a car - by [eLg]Timmy - 28.05.2009, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)