SA-MP Forums Archive
(HELP) remove driving license and checkreg command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (HELP) remove driving license and checkreg command (/showthread.php?tid=271966)



(HELP) remove driving license and checkreg command - spaty2 - 26.07.2011

DELETE PLEASE


Re: (HELP) remove driving license and checkreg command - Dr - 26.07.2011

Can you post the variable you use to save the driving license?


Re: (HELP) remove driving license and checkreg command - spaty2 - 26.07.2011

pawn Код:
}
    else if(dialogid == 138)
    {
        if(GetPVarInt(playerid, "CarLicenses") == 2)
        {
            SetPVarInt(playerid, "CarLicenses", 0); // dont have license yet
            PlayerData[playerid][Step] = 0;
            RemovePlayerFromVehicle(playerid);
            SetVehicleToRespawn(PlayerData[playerid][Vehicle]);
        }
        else if(GetPVarInt(playerid, "CarLicenses") == 1) // have license now
        {
            new pname[MAX_PLAYER_NAME], string[100];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "CarLicenses/%s.ini", pname);
            new File:sgt_file = fopen(string, io_write);
            new day, year, month;
            getdate(year, month, day);
            format(string, sizeof(string), "%s is owning this driving license since: %d/%d/%d\r\n", pname, day, month, year);
            fwrite(sgt_file, string);
            fclose(sgt_file);
            PlayerData[playerid][Step] = 0;
            RemovePlayerFromVehicle(playerid);
            SetVehicleToRespawn(PlayerData[playerid][Vehicle]);
        }
    }
    return 1;
I think this is it


Re: (HELP) remove driving license and checkreg command - spaty2 - 26.07.2011

bump