[Ajuda] Ajudinha
#1

Nгo aparece , nгo sei por que!

pawn Код:
vehicle3Dtext[ VSpawn ] = Create3DTextLabel( "{33FF33}Terra {FF0000}Roleplay", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    VSpawn = CreateVehicle(510, 1706.7469, -1352.3348, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.7911, -1354.5278, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.7968, -1357.5509, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.7140, -1360.5859, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.7338, -1362.9459, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1707.0226, -1334.5477, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.9670, -1332.0565, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1707.0156, -1329.5133, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1707.0447, -1326.5067, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn = CreateVehicle(510, 1706.9893, -1324.0208, 13.1216, 268.7509, -1,-1,999999999);
    Attach3DTextLabelToVehicle( vehicle3Dtext[ VSpawn ] , VSpawn, 0.0, 0.0, 2.0);
Reply
#2

pawn Код:
new
        VSpawn [ 11 ];

    vehicle3Dtext[ VSpawn ] = Create3DTextLabel( "{33FF33}Terra {FF0000}Roleplay", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    VSpawn [ 0 ] = CreateVehicle(510, 1706.7469, -1352.3348, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 1 ] = CreateVehicle(510, 1706.7911, -1354.5278, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 2 ] = CreateVehicle(510, 1706.7968, -1357.5509, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 3 ] = CreateVehicle(510, 1706.7140, -1360.5859, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 4 ] = CreateVehicle(510, 1706.7338, -1362.9459, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 5 ] = CreateVehicle(510, 1707.0226, -1334.5477, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 6 ] = CreateVehicle(510, 1706.9670, -1332.0565, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 7 ] = CreateVehicle(510, 1707.0156, -1329.5133, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 8 ] = CreateVehicle(510, 1707.0447, -1326.5067, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 9 ] = CreateVehicle(510, 1706.9893, -1324.0208, 13.1216, 268.7509, -1,-1,999999999);

    for(new c = 0; c < (sizeof VSpawn); c++)
        Attach3DTextLabelToVehicle( vehicle3Dtext[ VSpawn ] , c, 0.0, 0.0, 2.0);
Reply
#3

Los Fiz deste teu geito mais deu erro
Код:
C:\Documents and Settings\Cliente\Desktop\Server Tito\servidor\gamemodes\bph.pwn(3855) : error 001: expected token: ";", but found "}"
C:\Documents and Settings\Cliente\Desktop\Server Tito\servidor\gamemodes\bph.pwn(3884) : error 033: array must be indexed (variable "VSpawn")
C:\Documents and Settings\Cliente\Desktop\Server Tito\servidor\gamemodes\bph.pwn(3897) : error 033: array must be indexed (variable "VSpawn")
C:\Documents and Settings\Cliente\Desktop\Server Tito\servidor\gamemodes\bph.pwn(6655) : error 033: array must be indexed (variable "VSpawn")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

pawn Код:
new Text3D:CarroCS[MAX_PLAYERS];// topo
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
    new Float:X, Float:Y,Float:Z;
    for(new c = 0; c <= 10; c++)
    {
        if(IsPlayerInVehicle(playerid, VSpawn[c]))
        {
            VSpawn[playerid] = Create3DTextLabel(" Texto aqui ", -1, X, Y, Z+1, 30, 0, 9);
            Attach3DTextLabelToVehicle(CarroCS[playerid], CarrosCC[c], 0, 0, 0);
            return 1;
        }
    }
    return 1;
}
Peguei de um sistema do meu gamemode...
Reply
#5

pawn Код:
new VSpawn[ 10 ];
new Text3D:vehicle3Dtext[ 10 ];

for(new c = 0; c < sizeof(vehicle3Dtext); c++)
    vehicle3Dtext[ c ] = Create3DTextLabel( "{33FF33}Terra {FF0000}Roleplay", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );

VSpawn [ 0 ] = CreateVehicle(510, 1706.7469, -1352.3348, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 1 ] = CreateVehicle(510, 1706.7911, -1354.5278, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 2 ] = CreateVehicle(510, 1706.7968, -1357.5509, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 3 ] = CreateVehicle(510, 1706.7140, -1360.5859, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 4 ] = CreateVehicle(510, 1706.7338, -1362.9459, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 5 ] = CreateVehicle(510, 1707.0226, -1334.5477, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 6 ] = CreateVehicle(510, 1706.9670, -1332.0565, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 7 ] = CreateVehicle(510, 1707.0156, -1329.5133, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 8 ] = CreateVehicle(510, 1707.0447, -1326.5067, 13.1216, 268.7509, -1,-1,999999999);
VSpawn [ 9 ] = CreateVehicle(510, 1706.9893, -1324.0208, 13.1216, 268.7509, -1,-1,999999999);

for(new c = 0; c < sizeof(VSpawn); c++)
    Attach3DTextLabelToVehicle( vehicle3Dtext[ c ] , VSpawn[ c ], 0.0, 0.0, 2.0);
Reply
#6

pawn Код:
new
        Text3D:txt_vehicle [ 11 ],
        VSpawn [ 11 ];

    VSpawn [ 0 ] = CreateVehicle(510, 1706.7469, -1352.3348, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 1 ] = CreateVehicle(510, 1706.7911, -1354.5278, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 2 ] = CreateVehicle(510, 1706.7968, -1357.5509, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 3 ] = CreateVehicle(510, 1706.7140, -1360.5859, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 4 ] = CreateVehicle(510, 1706.7338, -1362.9459, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 5 ] = CreateVehicle(510, 1707.0226, -1334.5477, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 6 ] = CreateVehicle(510, 1706.9670, -1332.0565, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 7 ] = CreateVehicle(510, 1707.0156, -1329.5133, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 8 ] = CreateVehicle(510, 1707.0447, -1326.5067, 13.1216, 268.7509, -1,-1,999999999);
    VSpawn [ 9 ] = CreateVehicle(510, 1706.9893, -1324.0208, 13.1216, 268.7509, -1,-1,999999999);

    for(new c = 0; c < (sizeof VSpawn); c++)
        Attach3DTextLabelToVehicle( txt_vehicle [ c ] , c, 0.0, 0.0, 2.0);
        txt_vehicle [ c ] = Create3DTextLabel( "{33FF33}Terra {FF0000}Roleplay", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)