Float goto
#4

Why no "Float:" tags?

pawn Код:
new Float:pickx, Float:picky, Float:pickz, pickint;
An edit:
pawn Код:
CMD:fgoto(playerid, params[])
{
    if(PlayerData[playerid][AdminLevel] < 4) return false;
   
    new
        Float:TargetX,
        Float:TargetY,
        Float:TargetZ,
        TargetInterior
    ;
   
    if(sscanf(params, "fffi", TargetX, TargetY, TargetZ, TargetInterior))
    return SendClientMessage(playerid, grey, "USAGE: /fgoto [X] [Y] [Z] [Interior]");
   
    format(str,sizeof(str), "You have teleported (X: %f,Y: %f, Z: %f, Interior: %d",
    TargetX, TargetY, TargetZ, TargetInterior);
    SendClientMessage(playerid, COLOR_LIMEGREEN, str);
   
    SetPlayerInterior(playerid, TargetInterior);
    SetPlayerPos(playerid, TargetX, TargetY, TargetZ);
   
    return true;
}
Reply


Messages In This Thread
Float goto - by Tanush123 - 06.02.2012, 02:45
Re: Float goto - by suhrab_mujeeb - 06.02.2012, 04:11
Re: Float goto - by Lorenc_ - 06.02.2012, 04:39
Re: Float goto - by iPLEOMAX - 06.02.2012, 05:30

Forum Jump:


Users browsing this thread: 1 Guest(s)