[FS/INC] Carbot - Tired of driving Busses or Cars ? Get your Carbot now [v.0.1]
#1

Carbot-Buttler - [v.0.1]

Theres a lot of Server with Godfather and any Godfatherserver got the same Problem...
Nobody wantґs to be a Busdriver . Why ?

Quote:

- Low Money
- Everyone shots at ur tires (Thatґs rll Shit)
- Busses are so sloooooow
- Busdriver getґs frustrated and start to kill Police Officers

So thatґs the ultimate Answer to all this suckers.

What does it do ?

#include <jmove>
©Copyright 2009, Jason Gregory
3 Speedoptions - Slow [< 25Mph], Normal [>= 50Mph], Fast [> 75Mph][/b]
U can make ur own Route Ingame with /Botmark
U can enter the Car/Vehicle as Driver/Passenger
U can start the Vehicle with /Startbotcar
U can stop the Vehicle with /Stopbotcar
U can change the Height, X-Coord, Y-Coord, X-Coord of the Vehicle with MoveVehicleX, MoveVehicleY, MoveVehicleZ
Compatible with any Vehicle, Planes, Boats, Bikes, Motorbike
Userful for Busses or Planes

Natives:

Код:
native xMoveVehicle(carid);
native yMoveVehicle(carid);
native zMoveVehicle(carid);
native MoveVehicle(carid);
Link for the Include:



And No i dont want to be Mirrored


Add this to ur Gamemode

Код:
   /*Under OnPlayerCommandText*/

   if(strcmp(cmd, "/vehmark", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (PlayerIsAdmin)
			{
				GetPlayerPos(playerid, TeleportDestveh[playerid][0],TeleportDestveh[playerid][1],TeleportDestveh[playerid][2]);
				SendClientMessage(playerid, COLOR_GRAD1, " Teleporter Station set, now use /Botstart");
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, " HINT: U must login as Rcon Admin !");
			}
		}
		return 1;
	}
This Mark is the Position where the Bot goes, so dont place the Mark behind Buildings!
TeleportDestveh is allready definied in the Include.


What i need to to next ?

Код:
/*U need to 'Start' the Bot so put this OnPlayerCommandText too. Itґs just a simple Timer */

forward Autostop();

if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
     	Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	KillTimer(Autostop);
      }
 	  return 1;
	} 
   public Autostop()
   {
		xMoveVehicle(carid);
        yMoveVehicle(carid);
        zMoveVehicle(carid);
       //or just use MoveVehicle(carid); because itґs all in 1
       MoveVehicle 
	}
For Acceleration

Код:
/*U need to 'Start' the Bot so put this OnPlayerCommandText too. Itґs just a simple Timer */

if(strcmp(cmd,"/Speed1",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
        KillTimer(Autostop);
     	 Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Speed2",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	Autostop = SetTimer("Autostop", 150, 1);
      }
 	  return 1;
	}
    if(strcmp(cmd,"/Speed3",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
        KillTimer(Autostop);
    	 Autostop = SetTimer("Autostop", 50, 1); //If u want it faster just edit it
      }
 	  return 1;
	}
Bugs

Код:
- Other Players !canґt see the Vehicle moving because Sa-mp is not syncrom
- MoveVehicle is bugged idk why but im doing my best, try out MoveVehicleX/Y/Z

If theres any Problem with the Script, post it here. It take a time for me to answer, because im rlly bussy working, but i will do my best.
Reply
#2

Cool!
Reply
#3

great job man
Reply
#4

Код:
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "x1" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "y1" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "z1" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(14) : error 020: invalid symbol name ""
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(30) : error 021: symbol already defined: "xMoveVehicle"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(33) : error 021: symbol already defined: "GetVehiclePos"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(35) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(37) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(41) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(44) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(48) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(50) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(53) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(57) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(60) : error 021: symbol already defined: "yMoveVehicle"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(63) : error 021: symbol already defined: "GetVehiclePos"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(65) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(67) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(71) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(75) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(81) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(84) : error 021: symbol already defined: "zMoveVehicle"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(87) : error 021: symbol already defined: "GetVehiclePos"
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(88) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(90) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(94) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(98) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(103) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(106) : error 021: symbol already defined: "MoveVehicle"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
All errors are from the include(s) not the script, I think.
Any idea how to fix that?
Reply
#5

mh wth ,you must be kidding this include is messed up this is half made or what ?
its not finished and the include is messed up and not complet so please put the full version LOL
Reply
#6

And you'd know would you?

Looks good man, keep up the good work *thumbs up*
Reply
#7

Damn, good job, Looks fun!
Reply
#8

Your version was full of errors. I fixed them, here:
http://pastebin.com/f226c29df

Pastebin messes the identation...
Reply
#9

pls create of this include fs ;d
Reply
#10

All people here know it only work if a player is inside the vehicle?
Reply
#11

Awesome!
Reply
#12

Cool Cool Jason^^
Reply
#13

Not bad dude

Edit:
Wohow, 800 posts :P
Reply
#14

Code:
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42726) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42734) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42743) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42744) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42752) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42760) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42761) : error 076: syntax error in the expression, or invalid function call
In those lines..

Code:
 	if(strcmp(cmd, "/vehmark", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (!IsPlayerAdmin(playerid))
			{
				GetPlayerPos(playerid, TeleportDestveh[playerid][0],TeleportDestveh[playerid][1],TeleportDestveh[playerid][2]);
				SendClientMessage(playerid, COLOR_GRAD1, " Teleporter Station set, now use /Botstart");
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, " HINT: U must login as Rcon Admin !");
			}
		}
		return 1;
	}

	if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
     	Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	KillTimer(Autostop);
      }
 	  return 1;
	}

	if(strcmp(cmd,"/Speed1",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
        KillTimer(Autostop);
     	 Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Speed2",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	Autostop = SetTimer("Autostop", 150, 1);
      }
 	  return 1;
	}
    if(strcmp(cmd,"/Speed3",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
        KillTimer(Autostop);
    	 Autostop = SetTimer("Autostop", 50, 1); //If u want it faster just edit it
      }
 	  return 1;
	}
Any idea on how to fix this?
Reply
#15

Sounded cool until I saw all the spelling errors and bad code.
Reply
#16

hey guys,
i have an problem if i do all the points of insert it in my script so i become this


C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(64) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(64) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(64) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(125) : error 021: symbol already defined: "SetVehiclePos"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(127) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(129) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(132) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(136) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(140) : error 021: symbol already defined: "yMoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(141) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(141) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(141) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(160) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(164) : error 021: symbol already defined: "zMoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(182) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(186) : error 021: symbol already defined: "MoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(195) : warning 202: number of arguments does not match definition
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(196) : warning 202: number of arguments does not match definition
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(197) : warning 202: number of arguments does not match definition
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(774) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(774) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(774) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(3232) : warning 225: unreachable code
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13882) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13890) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13894) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13894) : error 004: function "Autostop" is not implemented
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13896) : error 017: undefined symbol "carid"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13897) : error 017: undefined symbol "carid"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(1389 : error 017: undefined symbol "carid"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13900 -- 13901) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13906) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13907) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13915) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13923) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(13924) : error 076: syntax error in the expression, or invalid function call
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(45922) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(45922) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\gamemodes\grg.pwn(45922) : warning 219: local variable "z2" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


21 Errors.

Some warnings are from my ObjectStreamer
Reply
#17

Yeah it seems my Compiler fucked the Include up because some Min. before it was working -> See the .Gif Animation
Okay i created a easy Filterscript as long the .Inc is bugged

http://sa-mp-service.webs.com/jmove.rar

Quote:

1. Just put the Filterscript in your Server.cfg
2. Start ur Gamemode and have fun =)

I hope this work for all
Reply
#18

Srry for doubleposting, u just need to add ur Coords init
Search

Code:
BotCar = AddStaticVehicle(431, X, Y, Z, Z_Angle, 0, 0);
And put ur Coords init, anything more under /Bothelp
Reply
#19

lol i have the same prolem agin....
and i downloded your Include file .....

Code:
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(14) : error 020: invalid symbol name ""
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(30) : error 021: symbol already defined: "xMoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(33) : error 021: symbol already defined: "GetVehiclePos"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(35) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(37) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(41) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(44) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(48) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(50) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(53) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(57) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(60) : error 021: symbol already defined: "yMoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(63) : error 021: symbol already defined: "GetVehiclePos"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(65) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(67) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(71) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(75) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(81) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(84) : error 021: symbol already defined: "zMoveVehicle"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(87) : error 021: symbol already defined: "GetVehiclePos"
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(88) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(90) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(94) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(98) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(103) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(106) : error 021: symbol already defined: "MoveVehicle"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
And my FS looks like:
Code:
#include <a_samp>
#include <jmove>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

forward Autostop();

BotCar = AddStaticVehicle(431, X, Y, Z, Z_Angle, 0, 0);

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Carbot by Jason_Gregory umgewandelt in FS von Sebastian Frank");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Carbot by Jason_Gregory umgewandelt in FS von Sebastian Frank");
	print("----------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid, cmdtext&#91;])
{
    if(strcmp(cmd, "/vehmark", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (PlayerIsAdmin)
			{
				GetPlayerPos(playerid, TeleportDestveh[playerid][0],TeleportDestveh[playerid][1],TeleportDestveh[playerid][2]);
				SendClientMessage(playerid, COLOR_GRAD1, "  Teleporter Station set, now use /Botstart");
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "  HINT: U must login as Rcon Admin !");
			}
		}
		return 1;
	}
	if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
      	Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Startbotcar",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	KillTimer(Autostop);
      }
 	  return 1;
	}
    public Autostop()
    {
		xMoveVehicle(carid);
        yMoveVehicle(carid);
        zMoveVehicle(carid);
        //or just use MoveVehicle(carid); because itґs all in 1
        MoveVehicle
	}
	if(strcmp(cmd,"/Speed1",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
         KillTimer(Autostop);
      	 Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
      }
	  return 1;
	}
  if(strcmp(cmd,"/Speed2",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
    	Autostop = SetTimer("Autostop", 150, 1);
      }
 	  return 1;
	}
    if(strcmp(cmd,"/Speed3",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
         KillTimer(Autostop);
    	 Autostop = SetTimer("Autostop", 50, 1); //If u want it faster just edit it
      }
 	  return 1;
	}

}

Reply
#20

Look... it's a nice concept and an OK try, but there is alot of coding and spelling errors and the script is really not presented in an acceptable way. It needs work... alot of work...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)