Save name to file
#11

It doesnt work, it doesnt matter what your name is and the name in file, when you enter a vehicle it just comes up with that message, and also it comes up on all the cars even the ones you cant buy that are not in the file, any ideas?

This is what im using
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    new file[256], name[24];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"Cars/%s.ini",name);
    if(!strcmp(VehicleInfo[playerid][Owner], "name", true))
    {
        SendClientMessage(playerid, COLOR_ORANGE, "YOUR CAR");
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_ORANGE, "NOT YOUR CAR");
    }
    return 1;
}
Reply


Messages In This Thread
Save name to file - by HondaCBR - 22.11.2011, 13:38
Re: Save name to file - by sim_sima - 22.11.2011, 13:40
Re: Save name to file - by JaTochNietDan - 22.11.2011, 13:40
Re: Save name to file - by Hoborific - 22.11.2011, 13:41
Re: Save name to file - by HondaCBR - 22.11.2011, 17:17
Re: Save name to file - by JaTochNietDan - 22.11.2011, 17:21
Re: Save name to file - by HondaCBR - 22.11.2011, 17:32
Re: Save name to file - by JaTochNietDan - 22.11.2011, 17:35
Re: Save name to file - by HondaCBR - 22.11.2011, 17:47
Re: Save name to file - by JaTochNietDan - 22.11.2011, 17:49
Re: Save name to file - by HondaCBR - 22.11.2011, 18:11
Re: Save name to file - by JaTochNietDan - 22.11.2011, 18:19
Re: Save name to file - by [MG]Dimi - 22.11.2011, 18:20
Re: Save name to file - by HondaCBR - 22.11.2011, 21:09
Re: Save name to file - by JaTochNietDan - 22.11.2011, 22:25
Re: Save name to file - by HondaCBR - 22.11.2011, 23:49
Re: Save name to file - by JaTochNietDan - 23.11.2011, 00:10
Re: Save name to file - by HondaCBR - 23.11.2011, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)