Author Topic: cmd problem  (Read 3175 times)

0 Members and 1 Guest are viewing this topic.

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
cmd problem
« on: January 13, 2012, 05:43:19 pm »
hy guys i am scriping on GUPS i want to a cmd !stunt1,2,3, so on so i do this

    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-987.98461,265.30059,8.81042);
      SetPlayerVehicle(playerid, 156 );
      format(szMsg, 128, "%s gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

what i did wrong??it saying undefined symbol "SetPlayerVehicle"
tell me the solution that when i type !stunt the player come to the saved position with car or bike
Storm City Owner

Stormcity.smfnew.com

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: cmd problem
« Reply #1 on: January 13, 2012, 11:01:06 pm »
hmmm. SetPlayerVehicle not are in VC:MP ! i think you get wrong includes...

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline Ankit

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: cmd problem
« Reply #2 on: January 14, 2012, 06:32:29 am »
PutDirectlyInVehicle(playerid,156);
Name-Ankit Sharma
Age- 10
Location-India
WorkGroup:Small player and Scripter

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: cmd problem
« Reply #3 on: January 14, 2012, 07:12:47 am »
    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-1046.64941,63.60477,11.29495);
      PutDirectlyInVehicle(playerid,156);
      format(szMsg, 128, "%s is gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

see this what i did wrong.When i type !stunt the player automatically sit on car but why the player is not going to the POSITION
Storm City Owner

Stormcity.smfnew.com

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: cmd problem
« Reply #4 on: January 14, 2012, 01:38:59 pm »
    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-1046.64941,63.60477,11.29495);
      PutDirectlyInVehicle(playerid,156);
      format(szMsg, 128, "%s is gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

see this what i did wrong.When i type !stunt the player automatically sit on car but why the player is not going to the POSITION

Cuse you put "PutDirectlyInVehicle(playerid,156)" 

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: cmd problem
« Reply #5 on: January 14, 2012, 02:42:16 pm »
so there is no another cmd
Storm City Owner

Stormcity.smfnew.com