lil help with strcmp
#1

Well it sends the message saying that vehicle is owned by...
but it doesnt remove the player from the vehicle, why?
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[128];
    format(string,sizeof(string),"%s",Carowner);
    if(strcmp(GetPName(playerid),Carowner) == -1)
    {
        RemovePlayerFromVehicle(playerid);
        SendFMessage(playerid,red,"[Private Car]"lgreen"That vehicle is owned by "lyellow"%s"lgreen"!",Carowner);
    }
    return 1;
}
Reply


Messages In This Thread
lil help with strcmp - by [MWR]Blood - 02.04.2011, 18:56
Re: lil help with strcmp - by ~Yoshi - 02.04.2011, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)