[Help] Command's
#1

I got 2 command's, but i dont know how to put them good correct with { and }'s
Thanx if u will help!

My Code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmdtext, "/home"))
  {
    if(IsPlayerInAnyVehicle(playerid))
    {
      SetVehiclePos(GetPlayerVehicleID(playerid), 673.6246, 1732.0582, 6.9922);
    }
    else
    {
      SetPlayerPos(playerid, 673.6246, 1732.0582, 6.9922);
    }
    return 1;
  }
  return 0;
}
The other command
Код:
if(!strcmp(cmdtext, "/drift"))
  {
    if(IsPlayerInAnyVehicle(playerid))
    {
      SetVehiclePos(GetPlayerVehicleID(playerid), -329.7016, 1536.6998, 76.6117);
    }
    else
    {
      SetPlayerPos(playerid, -329.7016, 1536.6998, 76.6117);
    }
    return 1;
  }
Reply


Messages In This Thread
[Help] Command's - by dclaw - 21.02.2010, 10:36
Re: [Help] Command's - by adsy - 21.02.2010, 10:38
Re: [Help] Command's - by dclaw - 21.02.2010, 10:39
Re: [Help] Command's - by adsy - 21.02.2010, 10:40
Re: [Help] Command's - by dclaw - 21.02.2010, 10:41
Re: [Help] Command's - by adsy - 21.02.2010, 10:43
Re: [Help] Command's - by dclaw - 21.02.2010, 10:47
Re: [Help] Command's - by adsy - 21.02.2010, 10:48
Re: [Help] Command's - by dclaw - 21.02.2010, 10:53
Re: [Help] Command's - by adsy - 21.02.2010, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)