23.12.2013, 10:07
I agree with Konstantinos
If COL_BLUE is defined like this.
then you should change it
not to affect your other code, use this code
If COL_BLUE is defined like this.
pawn Код:
#define COL_BLUE "{0049FF}"
pawn Код:
#define COL_BLUE 0x0049FF
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;
}