Little problem
#1

Код:
  if(strcmp(cmd, "/ccline", true) == 0)
	{
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp))
	{
	SendClientMessage(playerid, 0x919191FF, "USAGE: /Ccline [Line id]");
	return 1;
	}
  lineid = strval(tmp);
  if(lineid > 4)
  {
	SendClientMessage(playerid, 0x919191FF, "There is no number of line..max is 4");
  return 1;
  }
	if(lineid == 1)
 	{
	DisablePlayerCheckpoint(playerid);
 	DRIVERCP[playerid]++;
  	SetPlayerCheckpoint(playerid,LineOne[1][0],LineOne[1][1],LineOne[1][2],5.0);
	return 1;
	}
	if(lineid == 2)
 	{
	DisablePlayerCheckpoint(playerid);
 	DRIVERCP[playerid]++;
  	SetPlayerCheckpoint(playerid,LineTow[1][0],LineTow[1][1],LineTow[1][2],5.0);
  	}
	return 1;
	}
this command don't work , don't do anything..
--------------------------------------
and how can i do,that when every player enter to every bus in the server,i wil be able to do any command? [ i nned to know this thing only]
Код:
	if(!IsPlayerInVehicle(GetPlayerVehicleID(playerid),437))
	{
	SendClientMessage(playerid,COLOR_RED,"You're not in the BUS!");
	return 1;
it's don't work...

thanks
Reply


Messages In This Thread
Little problem - by GiP_YossI - 19.08.2009, 22:50
Re: Little problem - by GiP_YossI - 20.08.2009, 09:05
Re: Little problem - by MenaceX^ - 20.08.2009, 09:11
Re: Little problem - by GiP_YossI - 20.08.2009, 12:13
Re: Little problem - by MenaceX^ - 20.08.2009, 12:18
Re: Little problem - by GiP_YossI - 20.08.2009, 13:28
Re: Little problem - by MenaceX^ - 20.08.2009, 13:29
Re: Little problem - by GiP_YossI - 20.08.2009, 13:36
Re: Little problem - by MenaceX^ - 20.08.2009, 13:40
Re: Little problem - by GiP_YossI - 20.08.2009, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)