Car owner on Enter vehicle.
#3

Use this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    format(file, sizeof(file), "RRP/vehicles/%d.ini", vehicleid);
    if(fexist(file))
    {
        new string[128];
        format(string, sizeof(string), "[SERVER]: This is %s vehicle.", dini_Get(file, "Owner"));
        SendClientMessage(playerid, COLOR_LIGHTRED, string);
    }
}
You can not use 'dini_Int' since it's not an integer thus you'll have to use dini_Get.

Edit: person above has beaten me to it :P
Reply


Messages In This Thread
Car owner on Enter vehicle. - by ricardo178 - 28.02.2012, 12:54
Re: Car owner on Enter vehicle. - by milanosie - 28.02.2012, 12:58
Re: Car owner on Enter vehicle. - by FuTuяe - 28.02.2012, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)