[Tutorial] Tuto pour OnPlayerClickMap
#9

Quote:
Originally Posted by iDroid
View Post
Optimisation et indentation absente

pawn Code:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Trolilolilol !");
    if(IsPlayerInAnyVehicle(playerid)) {
        new CarID = GetPlayerVehicleID(playerid);
        new CarSeat = GetPlayerVehicleSeat(playerid);
        SetVehiclePos(CarID, fX, fY, fZ);
        return PutPlayerInVehicle(playerid, CarID, CarSeat);
    }
    return SetPlayerPos(playerid, fX, fY, fZ);
}
10x mieux et prend moins de place
BG <3, mais perso je crois que les switch sont meilleur que les if ^^
Reply


Messages In This Thread
Tuto pour OnPlayerClickMap - by Ramoboss - 18.04.2014, 03:57
Re : Tuto pour OnPlayerClickMap - by DiamantEspace18 - 18.04.2014, 11:46
Re: Tuto pour OnPlayerClickMap - by anou1 - 18.04.2014, 13:00
Re : Tuto pour OnPlayerClickMap - by Ramoboss - 18.04.2014, 13:15
Re : Tuto pour OnPlayerClickMap - by S4t3K - 18.04.2014, 13:23
Re : Tuto pour OnPlayerClickMap - by Ramoboss - 18.04.2014, 14:20
Re : Tuto pour OnPlayerClickMap - by nicolaskettler - 30.04.2014, 19:09
Re : Tuto pour OnPlayerClickMap - by iDroid - 30.04.2014, 19:40
Re : Tuto pour OnPlayerClickMap - by nicolaskettler - 30.04.2014, 19:52
Re : Tuto pour OnPlayerClickMap - by iDroid - 30.04.2014, 19:57

Forum Jump:


Users browsing this thread: 5 Guest(s)