26.01.2012, 16:26
I got this Private Car system from another member in here. I get error when i compile it. Here is the script:
And yes, my name is NuckFuts, lol
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == NuckFuts)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(strcmp(pName,"NuckFuts") == 0)
{
SendClientMessage(playerid,-1,"Welcome to your car, Mang!");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"This car is payed and reserved for NuckFuts!");
}
}
And yes, my name is NuckFuts, lol
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == NuckFuts)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(strcmp(pName,"NuckFuts") == 0)
{
SendClientMessage(playerid,-1,"Welcome to your car, Mang!");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"This car is payed and reserved for NuckFuts!");
}
}