25.11.2013, 01:13
Tava precisando pegar a id do veiculo para fazer uma comparaзгo com uma variavel, como eu faзo?
GetPlayerVehicleID(playerid)
new placaveiculo = GetPlayerVehicleID(playerid);
else if(placaveiculo < 500)
{
if(placaveiculo != pCarKey)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo tem a chave desse veнculo!");
}
else if(placaveiculo == pCarKey)
{
ligarcarro;
return 1;
}
}
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\GM.pwn(61684) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\GM.pwn(61684) : warning 215: expression has no effect
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\GM.pwn(61684) : error 001: expected token: ";", but found "if"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\GM.pwn(61686) : warning 213: tag mismatch
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\GM.pwn(61690) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
new placaveiculo = GetPlayerVehicleID(playerid);
else if(placaveiculo >= 500)
{
if(placaveiculo != pCarKey)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo tem a chave desse veнculo!");
}
else if(placaveiculo == pCarKey)
{
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
motor[playerid] = 1;
format(string, sizeof(string), " %s estб ligando o veiculo.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
return 1;
}
}
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(60192) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(60192) : warning 215: expression has no effect
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(60192) : error 001: expected token: ";", but found "if"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(60194) : warning 213: tag mismatch
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(60198) : warning 213: tag mismatch
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(17599) : warning 204: symbol is assigned a value that is never used: "GuerranaEstacaoLV"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(17569) : warning 204: symbol is assigned a value that is never used: "GuerranoHotel"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA.pwn(17639) : warning 204: symbol is assigned a value that is never used: "GuerranoSkate"
Pawn compULTRAer 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
//chave carro
new placaveiculo = GetPlayerVehicleID(playerid);
else if(placaveiculo >= 500)
(60192) {
if(placaveiculo != pCarKey)
(60194) {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo tem a chave desse veнculo!");
}
else if(placaveiculo == pCarKey)
(60198) {
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
motor[playerid] = 1;
format(string, sizeof(string), " %s estб ligando o veiculo.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
return 1;
}
}