27.07.2012, 14:33
hey all i have one error in OnPlayerEnterVehicle here is code and errors is
what is this error please help
PHP код:
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1869) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1881) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1892) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1902) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1911) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1917) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1923) : error 001: expected token: ";", but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1929) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(PlayerInfo[playerid][CarLic] == 0)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_RED, "Access Denied.");
SendClientMessage(playerid, COLOR_RED, "*Ти незнаеш да караш още нужни са ти");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Автомобили");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Тежко-товарни камиони");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за За Въздушни средства");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Мотоциклети");
SendClientMessage(playerid, COLOR_RED, "*Щот ги получиш от инструкторите ще можех да караш");
return 0;
}
else if(PlayerInfo[playerid][TruckLic] == 0)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_RED, "*Ти незнаеш да караш още нужни са ти");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Тежко-товарни камиони");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за За Въздушни средства");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Мотоциклети");
SendClientMessage(playerid, COLOR_RED, "*Щот ги получиш от инструкторите ще можех да караш");
return 0;
}
else if(PlayerInfo[playerid][HeliLic] == 0)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_RED, "*Ти незнаеш да караш още нужни са ти");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за За Въздушни средства");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Мотоциклети");
SendClientMessage(playerid, COLOR_RED, "*Щот ги получиш от инструкторите ще можех да караш");
return 0;
}
else if(PlayerInfo[playerid][BikeLic] == 0)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_RED, "*Ти незнаеш да караш още нужни са ти");
SendClientMessage(playerid, COLOR_RED, "*Лиценс за Мотоциклети");
SendClientMessage(playerid, COLOR_RED, "*Щот ги получиш от инструкторите ще можех да караш");
return 0;
}
if(PlayerInfo[playerid][CarLic] == 1)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_GREEN, "*Ти имаш лиценси и можеш да караш");
return 0;
}
else if(PlayerInfo[playerid][TruckLic] == 1)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_GREEN, "*Ти имаш лиценси и можеш да караш");
return 0;
}
else if(PlayerInfo[playerid][HeliLic] == 1)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_GREEN, "*Ти имаш лиценси и можеш да караш");
return 0;
}
else if(PlayerInfo[playerid][BikeLic] == 1)
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(playerid, COLOR_GREEN, "*Ти имаш лиценси и можеш да караш");
return 0;
}
return 0;
}