Quote:
Originally Posted by Ettans
How's this?
pawn Код:
7987|public OnPlayerExitVehicle(playerid, vehicleid) 7988|{ 7989|TogglePlayerControllable(playerid, 1); 7990| if(GetPlayerState(playerid) == 1) 7991| 7992| return 1; 7993|if(PlayerInfo[playerid][pSeatBelt] == 1) 7994|{ 7995|PlayerInfo[playerid][pSeatBelt] = 0; 7996|new stringtosee[255]; 7997|new sendername[MAX_PLAYER_NAME]; 7998|GetPlayerName(playerid, sendername, sizeof(sendername)); 7999|new ftext[255]; 8000|if(PlayerInfo[playerid][pSex] == 1) 8001| ftext = "his"; 8002| 8003|else if(PlayerInfo[playerid][pSex] == 0) 8004| ftext = "her"; 8005| 8006|format(stringtosee, sizeof(stringtosee), "* %s unbuckles %s seat belt", sendername , ftext); 8007| ProxDetector(30.0, playerid, stringtosee, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA); 8008|return 1; 8009| } 8010| /*if(gGas[playerid] == 1) 8011| { 8012| GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3); 8013| }*/ 8014| if(IsAHarvest(vehicleid)) 8015| { 8016| if(FarmerVar[playerid] == 1) 8017| { 8018| SetTimer("FarmerExit", 7000, 0); 8019| GameTextForPlayer(playerid, "~n~~w~You have ~r~7~w~ seconds~n~to get back on a harvest", 5000, 3); 8020| } 8021| } 8022| if(IsADrugHarvest(vehicleid)) 8023| { 8024| if(DrugFarmerVar[playerid] == 1) 8025| { 8026| SetTimer("DrugFarmerExit", 7000, 0); 8027| GameTextForPlayer(playerid, "~n~~w~You have ~b~7~w~ seconds~n~to get back on a harvest", 5000, 3); 8028| } 8029| } 8030| if(IsASmuggleCar(vehicleid)) 8031| { 8032| if(SmugglerWork[playerid] == 1) 8033| { 8034| SetTimer("SmugglerExit", 7000, 0); 8035| GameTextForPlayer(playerid, "~n~~w~You have ~r~7~w~ seconds~n~to get back in car", 5000, 3); 8036| } 8037| } 8038| if(gGas[playerid] == 1) 8039| { 8040| GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);} 8041| } 8042| if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0) 8043| { 8044| BusrouteEnd(playerid, vehicleid); 8045| } 8046| if (IsABus(vehicleid)) 8047| { 8048| for (new i=0; i<=MAX_PLAYERS; i++) 8049| { 8050| if (IsPlayerConnected(i)) 8051| { 8052| if (BusrouteEast[i][0] != 0 && BusrouteEast[i][1] == vehicleid) 8053| //BusrouteEast[i][2] --; 8054| GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~g~Passenger Left The Bus", 5000, 3); 8055| else if (BusrouteWest[i][0] != 0 && BusrouteWest[i][1] == vehicleid) 8056| //BusrouteWest[i][2] --; 8057| GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~g~Passenger Left The Bus", 5000, 3); 8058| } 8059| } 8060| } 8061| return 1; 8062|}
Would be nice if you posted which lines actually give you the error.
|
Still error .
first linenumber is 7987 and last is 8062 .
error:
(8041) : warning 209: function "OnPlayerExitVehicle" should return a value
(8042) : error 010: invalid function or declaration
(8044) : warning 218: old style prototypes used with optional semicolumns
(8045) : error 054: unmatched closing brace ("}")
(8046) : error 010: invalid function or declaration
(804

: error 010: invalid function or declaration
(8050) : error 010: invalid function or declaration
(8052) : error 010: invalid function or declaration
(8054) : error 021: symbol already defined: "GameTextForPlayer"
(8055) : error 010: invalid function or declaration
(8057) : error 021: symbol already defined: "GameTextForPlayer"
(8061) : error 010: invalid function or declaration