03.01.2011, 07:01
How i can put a train and it will run automatically?
I mean automatic driver.
Is it possible to do that?
I mean automatic driver.
Is it possible to do that?
TrainLS = AddStaticVehicle(538, 1462.0, 2630.8, 10.8, 200.0, -1, -1); TrainLV = AddStaticVehicle(538, -1942.7, 168.4, 27.0, 200.0, -1, -1); TrainSF = AddStaticVehicle(538, 1700.7, -1953.6, 14.8, 200.0, -1, -1); ConnectNPC("TrainDriverLS", "train_ls"); ConnectNPC("TrainDriverLV", "train_lv"); ConnectNPC("TrainDriverSF", "train_sf");
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); if(!strcmp(Name, "TrainDriverLS", false)) { PutPlayerInVehicle(playerid, TrainLS, 0); } if(!strcmp(Name, "TrainDriverLV", false)) { PutPlayerInVehicle(playerid, TrainLV, 0); } if(!strcmp(Name, "TrainDriverSF", false)) { PutPlayerInVehicle(playerid, TrainSF, 0); } } return 1; }
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(86) : error 017: undefined symbol "TrainLS"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(89) : error 017: undefined symbol "TrainLV"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(92) : error 017: undefined symbol "TrainSF"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(170) : error 017: undefined symbol "TrainLS"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(171) : error 017: undefined symbol "TrainLV"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(172) : error 017: undefined symbol "TrainSF"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.