04.02.2010, 20:37
I have error with code , mabye somebody can fix it ?
Errors:
(8089) : error 010: invalid function or declaration
(8091) : error 010: invalid function or declaration
(8097) : error 010: invalid function or declaration
(8099) : error 010: invalid function or declaration
(8105) : error 010: invalid function or declaration
(8107) : error 010: invalid function or declaration
(8113) : error 010: invalid function or declaration
(8117) : error 010: invalid function or declaration
(8119) : warning 218: old style prototypes used with optional semicolumns
(8120) : error 054: unmatched closing brace ("}")
(8121) : error 010: invalid function or declaration
(8123) : error 010: invalid function or declaration
(8125) : error 010: invalid function or declaration
(8127) : error 010: invalid function or declaration
(8130) : error 021: symbol already defined: "GameTextForPlayer"
(8132) : error 010: invalid function or declaration
(8135) : error 021: symbol already defined: "GameTextForPlayer"
(8140) : error 010: invalid function or declaration
i hope somebody can help me.
Код:
public OnPlayerExitVehicle(playerid, vehicleid) { TogglePlayerControllable(playerid, 1); if (GetPlayerState(playerid) == 1) { return 1; } if(PlayerInfo[playerid][pSeatBelt] == 1) { PlayerInfo[playerid][pSeatBelt] = 0; new stringtosee[255]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); new ftext[255]; if(PlayerInfo[playerid][pSex] == 1) { ftext = "his"; } else if(PlayerInfo[playerid][pSex] == 1) { ftext = "her"; } format(stringtosee, sizeof(stringtosee), "* %s unbuckles %s seat belt", sendername , ftext); ProxDetector(30.0, playerid, stringtosee, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA); return 1; } /*if(gGas[playerid] == 1) { GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3); }*/ return 1; } if(IsAHarvest(vehicleid)) { if(FarmerVar[playerid] == 1) { SetTimer("FarmerExit", 7000, 0); GameTextForPlayer(playerid, "~n~~w~You have ~r~7~w~ seconds~n~to get back on a harvest", 5000, 3); } } if(IsADrugHarvest(vehicleid)) { if(DrugFarmerVar[playerid] == 1) { SetTimer("DrugFarmerExit", 7000, 0); GameTextForPlayer(playerid, "~n~~w~You have ~b~7~w~ seconds~n~to get back on a harvest", 5000, 3); } } if(IsASmuggleCar(vehicleid)) { if(SmugglerWork[playerid] == 1) { SetTimer("SmugglerExit", 7000, 0); GameTextForPlayer(playerid, "~n~~w~You have ~r~7~w~ seconds~n~to get back in car", 5000, 3); } } if(gGas[playerid] == 1) { GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);} } if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0) { BusrouteEnd(playerid, vehicleid); } if (IsABus(vehicleid)) { for (new i=0; i<=MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (BusrouteEast[i][0] != 0 && BusrouteEast[i][1] == vehicleid) { //BusrouteEast[i][2] --; GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~g~Passenger Left The Bus", 5000, 3); } else if (BusrouteWest[i][0] != 0 && BusrouteWest[i][1] == vehicleid) { //BusrouteWest[i][2] --; GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~g~Passenger Left The Bus", 5000, 3); } } } } return 1; }
(8089) : error 010: invalid function or declaration
(8091) : error 010: invalid function or declaration
(8097) : error 010: invalid function or declaration
(8099) : error 010: invalid function or declaration
(8105) : error 010: invalid function or declaration
(8107) : error 010: invalid function or declaration
(8113) : error 010: invalid function or declaration
(8117) : error 010: invalid function or declaration
(8119) : warning 218: old style prototypes used with optional semicolumns
(8120) : error 054: unmatched closing brace ("}")
(8121) : error 010: invalid function or declaration
(8123) : error 010: invalid function or declaration
(8125) : error 010: invalid function or declaration
(8127) : error 010: invalid function or declaration
(8130) : error 021: symbol already defined: "GameTextForPlayer"
(8132) : error 010: invalid function or declaration
(8135) : error 021: symbol already defined: "GameTextForPlayer"
(8140) : error 010: invalid function or declaration
i hope somebody can help me.