2problems.
#7

Ok, im will use sscanf, but i cant test it now. It will work?

Код:
COMMAND:teleportuotis(playerid, params[])
{
    new
        id,
        seat,
        vehid,
        Float:x,
        Float:y,
        Float:z;
        GetPlayerPos(id, x, y, z);
    if (PlayerInfo[playerid][gHelper] <= 0) return SukurtiDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Рi komanda TIK Padejлjams!", "Gerai", "Uюdaryti");
	if(id == playerid) return SukurtiDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Kam teleportuotis pas save?", "Gerai", "Uюdaryti");
    if(sscanf(params,"u", id)) return SukurtiDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Naudojimas: /teleportuotis [Vardas]!", "Gerai", "Uюdaryti");
    if(IsPlayerInAnyVehicle(playerid))
    {
    seat = GetPlayerVehicleSeat(id);
    vehid = GetPlayerVehicleID(id);
    SetVehiclePos(playerid, x+1, y+1, z+1.3);
    PutPlayerInVehicle(playerid,vehid,seat);
	}else{
    SetPlayerPos(playerid, x + 1, y + 1, z);
    }
    return 1;
}
Reply


Messages In This Thread
2problems. - by Gh0sT_ - 03.10.2010, 12:18
Re: 2problems. - by Gh0sT_ - 03.10.2010, 17:04
Re: 2problems. - by Gh0sT_ - 05.10.2010, 19:07
Re: 2problems. - by TheHoodRat - 05.10.2010, 19:17
Re: 2problems. - by Gh0sT_ - 06.10.2010, 11:28
Re: 2problems. - by Mike_Peterson - 06.10.2010, 13:06
Re: 2problems. - by Gh0sT_ - 06.10.2010, 13:29
Re: 2problems. - by Mike_Peterson - 06.10.2010, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)