OMG i need help
#1

hey all i have one error in OnPlayerEnterVehicle here is code and errors is

PHP код:
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1869) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1881) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1892) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1902) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1911) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1917) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1923) : error 001expected token";"but found "-identifier-"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(1929) : error 001expected token";"but found "-identifier-"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
8 Errors

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
        if(
PlayerInfo[playerid][CarLic] == 0)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_RED"Access Denied.");
            
SendClientMessage(playeridCOLOR_RED"*Ти незнаеш да караш още нужни са ти");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Автомобили");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Тежко-товарни камиони");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за За Въздушни средства");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Мотоциклети");
            
SendClientMessage(playeridCOLOR_RED"*Щот ги получиш от инструкторите ще можех да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][TruckLic] == 0)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_RED"*Ти незнаеш да караш още нужни са ти");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Тежко-товарни камиони");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за За Въздушни средства");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Мотоциклети");
            
SendClientMessage(playeridCOLOR_RED"*Щот ги получиш от инструкторите ще можех да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][HeliLic] == 0)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_RED"*Ти незнаеш да караш още нужни са ти");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за За Въздушни средства");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Мотоциклети");
            
SendClientMessage(playeridCOLOR_RED"*Щот ги получиш от инструкторите ще можех да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][BikeLic] == 0)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_RED"*Ти незнаеш да караш още нужни са ти");
            
SendClientMessage(playeridCOLOR_RED"*Лиценс за Мотоциклети");
            
SendClientMessage(playeridCOLOR_RED"*Щот ги получиш от инструкторите ще можех да караш");
            return 
0;
    }
        if(
PlayerInfo[playerid][CarLic] == 1)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_GREEN"*Ти имаш лиценси и можеш да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][TruckLic] == 1)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_GREEN"*Ти имаш лиценси и можеш да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][HeliLic] == 1)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_GREEN"*Ти имаш лиценси и можеш да караш");
            return 
0;
    }
       else if(
PlayerInfo[playerid][BikeLic] == 1)
        {
            
RemovePlayerFromVehicle(playerid)
            
SendClientMessage(playeridCOLOR_GREEN"*Ти имаш лиценси и можеш да караш");
            return 
0;
    }
            return 
0;
    } 
what is this error please help
Reply
#2

RemovePlayerFromVehicle(playerid)
Add ; at the end
Код:
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; 
    }
Reply
#3

Quote:
Originally Posted by TheDeath
Посмотреть сообщение
RemovePlayerFromVehicle(playerid)
Add ; at the end
Код:
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; 
    }
thanks you man i dont see that
Reply
#4

pawn Код:
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;
    }
sorry for the text, that languages cannot be read on my comp . .
Reply
#5

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
sorry for the text, that languages cannot be read on my comp . .
Cyrilic WINS
Sorry for the offtopic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)