HELP Cmd
#7

Quote:
Originally Posted by karan007
Посмотреть сообщение
Код:
CMD:slapcar(playerid,params[])
{
  new Float:X;
foreach(Player, X)
	{
	    new surf = GetPlayerSurfingVehicleID(x);
		if(surf != INVALID_VEHICLE_ID)
		{
			new Float: fPos[3];
			GetPlayerPos(X, fPos[0], fPos[1], fPos[2]);
			SetPlayerPos(X, fPos[0], fPos[1], fPos[2]+5);
                }
	}
    return 1;
}
Is this what you want? Anyway, you need ZCMD for this command to work.
Yes, and i get errors (

Код:
(5538) : warning 219: local variable "X" shadows a variable at a preceding level
(5540) : error 017: undefined symbol "x"
: warning 203: symbol is never used: "X"
Reply


Messages In This Thread
HELP Cmd - by SHFaCeBook - 28.03.2015, 21:17
Re: HELP Cmd - by SHFaCeBook - 28.03.2015, 22:11
Re: HELP Cmd - by CalvinC - 29.03.2015, 08:52
Re: HELP Cmd - by SHFaCeBook - 29.03.2015, 11:38
Re: HELP Cmd - by Karan007 - 29.03.2015, 11:41
Re: HELP Cmd - by CalvinC - 29.03.2015, 11:45
Re: HELP Cmd - by SHFaCeBook - 29.03.2015, 14:35
Re: HELP Cmd - by CalvinC - 29.03.2015, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)