SA-MP Forums Archive
OMG i need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OMG i need help (/showthread.php?tid=363392)



OMG i need help - rumen98 - 27.07.2012

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


Re: OMG i need help - TheDeath - 27.07.2012

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; 
    }



Re: OMG i need help - rumen98 - 27.07.2012

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


Re: OMG i need help - Devilxz97 - 27.07.2012

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 . .


Re: OMG i need help - TheDeath - 27.07.2012

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