[AJUDA]Text no Veiculo
#4

Quote:
Originally Posted by zbt
Посмотреть сообщение
pawn Код:
new Text3D:text;//topo

stock aCreateThing(playerid, thingid, orderid)
{
    new Float:X, Float:Y, Float:Z, Float:Angle, Vehicle[MAX_VEHICLES];
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    if(thingid != 597)
    {
        Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, random(126), random(126), 30);
    }
    else
    {
        Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, 0, 1, 30);
    }
    new s[50],n[24];
    GetPlayerName(playerid, n, 24);
    format(s, 50, "Veiculo de %s [%d]", n, playerid);
    text = Create3DTextLabel(s, -1, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    Attach3DTextLabelToVehicle( text, Vehicle[orderid], 0.0, 0.0, 2.0);
    PutPlayerInVehicle(playerid, Vehicle[orderid], 0);
    TogglePlayerControllable(playerid, true);
    return 1;
}
Quote:

gamemodes\GM.pwn(9107) : warning 219: local variable "text" shadows a variable at a preceding level
gamemodes\GM.pwn(15933) : warning 219: local variable "Vehicle" shadows a variable at a preceding level

Linha 9107:
Quote:

public OnPlayerText(playerid, text[])

Linha 15932:
Quote:

new Float:X, Float:Y, Float:Z, Float:Angle, Vehicle[MAX_VEHICLES];

Reply


Messages In This Thread
[AJUDA]Text no Veiculo - by Edu33 - 02.05.2012, 15:18
Re: [AJUDA]Text no Veiculo - by .FuneraL. - 02.05.2012, 15:49
Re: [AJUDA]Text no Veiculo - by zbt - 02.05.2012, 15:51
Re: [AJUDA]Text no Veiculo - by Edu33 - 02.05.2012, 21:58
Re: [AJUDA]Text no Veiculo - by .FuneraL. - 02.05.2012, 22:00
Re: [AJUDA]Text no Veiculo - by jamaica90 - 02.05.2012, 22:39
Re: [AJUDA]Text no Veiculo - by zbt - 03.05.2012, 01:40
Re: [AJUDA]Text no Veiculo - by Edu33 - 03.05.2012, 11:39
Re: [AJUDA]Text no Veiculo - by jamaica90 - 03.05.2012, 21:33
Re: [AJUDA]Text no Veiculo - by Lуs - 03.05.2012, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)