Diogo_Bras

Untitled

Apr 13th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.53 KB | None | 0 0
  1. //Código
  2.  
  3. dcmd_derby(playerid, params[])
  4. {
  5.    #pragma unused params
  6.    new string[128], veiculo, world, Jogador[MAX_PLAYER_NAME];
  7.    new c = random(3);
  8.    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, AZUL, "Você não está em um veiculo. Vá até ao /estacionamento pegar um!");
  9.    veiculo = GetPlayerVehicleID(playerid);
  10.    world = GetVehicleVirtualWorld(vehicleid);
  11.    if(c == 0)
  12.    {
  13.       SetVehiclePos(veiculo, -1349.928100,936.199523,1036.045532);
  14.       SetVehicleZAngle(GetPlayerVehicleID(playerid), 284.168457);
  15.       SetVehicleVirtualWorld(veiculo, world);
  16.       SetPlayerInterior(playerid, 15);
  17.    }
  18.    else if (c == 1)
  19.    {
  20.       SetVehiclePos(veiculo, -1489.275634,953.833007,1036.574829);
  21.       SetVehicleZAngle(veiculo, 284.168457);
  22.       SetVehicleVirtualWorld(veiculo, world);
  23.       SetPlayerInterior(playerid, 15);
  24.    }
  25.    else if (c == 2)
  26.    {
  27.       SetVehiclePos(veiculo, -1391.118652,1056.710815,1038.12963);
  28.       SetVehicleZAngle(veiculo, 284.168457);
  29.       SetVehicleVirtualWorld(veiculo, world);
  30.       SetPlayerInterior(playerid, 15);
  31.    }
  32.    Duel3(playerid);
  33.    GetPlayerName(playerid, Jogador, sizeof(Jogador));
  34.    format(string, sizeof(string), "Jogador(a) %s foi para o derby! (/derby)", Jogador);
  35.    SendClientMessageToAll(AZUL, string);
  36.    return 0x1;
  37. }
  38.  
  39. //Erro:
  40. C:\Users\ApolloRJ\Desktop\GMDcmDOK.pwn(6966) : error 017: undefined symbol "vehicleid"
  41.  Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
  42.  
  43. //Linha:
  44. world = GetVehicleVirtualWorld(vehicleid);
Advertisement
Add Comment
Please, Sign In to add comment