Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Código
- dcmd_derby(playerid, params[])
- {
- #pragma unused params
- new string[128], veiculo, world, Jogador[MAX_PLAYER_NAME];
- new c = random(3);
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, AZUL, "Você não está em um veiculo. Vá até ao /estacionamento pegar um!");
- veiculo = GetPlayerVehicleID(playerid);
- world = GetVehicleVirtualWorld(vehicleid);
- if(c == 0)
- {
- SetVehiclePos(veiculo, -1349.928100,936.199523,1036.045532);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 284.168457);
- SetVehicleVirtualWorld(veiculo, world);
- SetPlayerInterior(playerid, 15);
- }
- else if (c == 1)
- {
- SetVehiclePos(veiculo, -1489.275634,953.833007,1036.574829);
- SetVehicleZAngle(veiculo, 284.168457);
- SetVehicleVirtualWorld(veiculo, world);
- SetPlayerInterior(playerid, 15);
- }
- else if (c == 2)
- {
- SetVehiclePos(veiculo, -1391.118652,1056.710815,1038.12963);
- SetVehicleZAngle(veiculo, 284.168457);
- SetVehicleVirtualWorld(veiculo, world);
- SetPlayerInterior(playerid, 15);
- }
- Duel3(playerid);
- GetPlayerName(playerid, Jogador, sizeof(Jogador));
- format(string, sizeof(string), "Jogador(a) %s foi para o derby! (/derby)", Jogador);
- SendClientMessageToAll(AZUL, string);
- return 0x1;
- }
- //Erro:
- C:\Users\ApolloRJ\Desktop\GMDcmDOK.pwn(6966) : error 017: undefined symbol "vehicleid"
- Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
- //Linha:
- world = GetVehicleVirtualWorld(vehicleid);
Advertisement
Add Comment
Please, Sign In to add comment