samp error 035: argument type mismatch (argument 2)
#5

I agree with Konstantinos

If COL_BLUE is defined like this.
pawn Код:
#define COL_BLUE           "{0049FF}"
then you should change it
pawn Код:
#define COL_BLUE           0x0049FF
not to affect your other code, use this code

pawn Код:
#define COLOR_BLUE 0x0049FF

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Float:p[3],model = GetVehicleModel(vehicleid);
    if(model == 432&&GetPlayerScore(playerid)<1500)
    {
        GetPlayerPos(playerid,p[0],p[1],p[2]);
        SetPlayerPos(playerid,p[0],p[1],p[2]);
        SendClientMessage(playerid, COLOR_BLUE,"[ERROR]:You need to have atleast 1500 score!");
    }
    if(model == 425&&GetPlayerScore(playerid)<2500)
    {
        GetPlayerPos(playerid,p[0],p[1],p[2]);
        SetPlayerPos(playerid,p[0],p[1],p[2]);
        SendClientMessage(playerid, COLOR_BLUE,"[ERROR]:You need to have atleast 2500 score!");
    }
    if(model == 520&&GetPlayerScore(playerid)<3500)
    {
        GetPlayerPos(playerid,p[0],p[1],p[2]);
        SetPlayerPos(playerid,p[0],p[1],p[2]);
        SendClientMessage(playerid, COLOR_BLUE,"[ERROR]:You need to have atleast 3500 score!");
    }
    if(model == 447&&GetPlayerScore(playerid)<5000)
    {
        GetPlayerPos(playerid,p[0],p[1],p[2]);
        SetPlayerPos(playerid,p[0],p[1],p[2]);
        SendClientMessage(playerid, COLOR_BLUE,"[ERROR]:You need to have atleast 5000 score!");
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)