new carropolicia;
carropolicia = AddStaticVehicle(523,1558.9136,-1633.9883,13.1272,335.4918,0,0); // moto policia
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new Veiculo = GetPlayerVehicleID(playerid); if(Veiculo == carropolicia) { if (gTeam[playerid] == TEAM_POLICIAL) { SendClientMessage(playerid, verde, "Seja bem vindo a sua patrulha!"); } else { SendClientMessage(playerid, verde, "Vocк nгo й um policial."); RemovePlayerFromVehicle(playerid); } } return 1; }
Originally Posted by rafa3dify
Ok, descupa, o do salvamento vou pedir no topico, mais o da profissao? nгo й de include nгo...
================================================== =============== Agora outra duvida: Eu nгo consigo reservar um carro para a gang, ja tentei de tudo, mais o codigo nem funciona, o que eu estou usando й esse aki: Код:
new carropolicia; Код:
carropolicia = AddStaticVehicle(523,1558.9136,-1633.9883,13.1272,335.4918,0,0); // moto policia Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new Veiculo = GetPlayerVehicleID(playerid); if(Veiculo == carropolicia) { if (gTeam[playerid] == TEAM_POLICIAL) { SendClientMessage(playerid, verde, "Seja bem vindo a sua patrulha!"); } else { SendClientMessage(playerid, verde, "Vocк nгo й um policial."); RemovePlayerFromVehicle(playerid); } } return 1; } |
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Veiculo = GetPlayerVehicleID(playerid);
if(Veiculo == carropolicia)
{
if (gTeam[playerid] == TEAM_POLICIAL)
{
SendClientMessage(playerid, verde, "Seja bem vindo a sua patrulha!");
return 1;
}
else
{
SendClientMessage(playerid, verde, "Vocк nгo й um policial.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1271) : error 017: undefined symbol "PoliciaMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1427) : error 017: undefined symbol "MedicoMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1453) : error 017: undefined symbol "ReporterMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1486) : error 017: undefined symbol "TerroristaMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1551) : error 017: undefined symbol "SegurancaMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1614) : error 017: undefined symbol "SegurancaVipMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1620) : error 017: undefined symbol "TaxiMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1625) : error 017: undefined symbol "OnibusMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1654) : error 017: undefined symbol "AdmMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1660) : error 017: undefined symbol "MedicoMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1666) : error 017: undefined symbol "PoliciaMensagem" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1794) : warning 225: unreachable code C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1794) : error 029: invalid expression, assumed zero C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1794) : error 004: function "OnPlayerExitVehicle" is not implemented C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1800) : warning 225: unreachable code C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1800) : error 029: invalid expression, assumed zero C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1800) : error 004: function "OnPlayerPickUpPickup" is not implemented C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1807) : warning 225: unreachable code C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1807) : error 029: invalid expression, assumed zero C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1807) : error 004: function "OnPlayerSelectedMenuRow" is not implemented C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1813) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1832) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1868) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1887) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1917) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1941) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(1978) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(2021) : error 017: undefined symbol "row" C:\Documents and Settings\Fael\Meus documentos\servidor\gamemodes\RPG.pwn(2066) : error 017: undefined symbol "row" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
#include a_samp
new
VEHICLE[MAX_VEHICLES],
IDX = -1;
public
OnGameModeInit()
{
IDX ++;
VEHICLE[IDX] = AddStaticVehicle(523, 1558.9136, -1633.9883, 13.1272, 335.4918, -1, -1); IDX ++;
return true;
}
public
OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new
_VEHICLE = GetPlayerVehicleID(playerid);
if(_VEHICLE == VEHICLE[0])
{
if(gTeam[playerid] == TEAM_POLICIAL)
{
SendClientMessage(playerid, verde, "Seja bem vindo a sua patrulha!");
} else {
SendClientMessage(playerid, verde, "Vocк nгo й um policial.");
RemovePlayerFromVehicle(playerid);
}
}
return true;
}
#include a_samp
new VEHICLE;
public
OnGameModeInit()
{
VEHICLE = AddStaticVehicle(523, 1558.9136, -1633.9883, 13.1272, 335.4918, -1, -1);
return true;
}
public
OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new VEHICLE2 = GetPlayerVehicleID(playerid);
if(VEHICLE2 == VEHICLE)
{
if(gTeam[playerid] == TEAM_POLICIAL)
{
SendClientMessage(playerid, verde, "Seja bem vindo a sua patrulha!");
} else {
SendClientMessage(playerid, verde, "Vocк nгo й um policial.");
RemovePlayerFromVehicle(playerid);
}
}
return true;
}
Originally Posted by @PlayMaker
@SuB_ZeRo0_:
LOO - OOO - OOL // para ti. --' |