if(IsPlayerInRangeOfPoint(playerid, 7.0, 1477.5275,1809.0818,10.8125)) { if(!IsPlayerInAnyVehicle(playerid)) return 1; if(AVIAON(GetPlayerVehicleID(playerid)) || AVIAOVIP(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0; { Chofer[GetPlayerVehicleID(playerid)] = INVALID_PLAYER_ID; AviaoCarregado[GetPlayerVehicleID(playerid)] = 0; Respawnear(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, -1, "{00CC00}Bom trabalho{FFFFFF}, vocк terminou a sua viagem e recebeu o seu pagamento."); DisablePlayerCheckpoint(playerid); SetPVarInt(playerid, "Voa", 0); PagoVoa(playerid, PlayerInfo[playerid][pNivelVoa],Carga[playerid]); return 1; } }
error 028: invalid subscript (not an array or too many subscripts): "AVIAOPESSOAL" error 001: expected token: ",", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0;
if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0;
if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid))] = 0;
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1477.5275,1809.0818,10.8125))
{
if(!IsPlayerInAnyVehicle(playerid))
return 1;
if(AVIAON(GetPlayerVehicleID(playerid)) || AVIAOVIP(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
Chofer[GetPlayerVehicleID(playerid)] = INVALID_PLAYER_ID;
AviaoCarregado[GetPlayerVehicleID(playerid)] = 0;
Respawnear(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, -1, "{00CC00}Bom trabalho{FFFFFF}, vocк terminou a sua viagem e recebeu o seu pagamento.");
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid, "Voa", 0);
PagoVoa(playerid, PlayerInfo[playerid][pNivelVoa],Carga[playerid]);
return 1;
}
}
Bom, criei um trabalho e estб tudo certo porйm, eu nгo quero respawnear um veнculo ao entrar no checkpoint mas nгo estou conseguindo fazer isso. Agradeзo desde jб toda a ajuda! Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1477.5275,1809.0818,10.8125)) { if(!IsPlayerInAnyVehicle(playerid)) return 1; if(AVIAON(GetPlayerVehicleID(playerid)) || AVIAOVIP(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0; { Chofer[GetPlayerVehicleID(playerid)] = INVALID_PLAYER_ID; AviaoCarregado[GetPlayerVehicleID(playerid)] = 0; Respawnear(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, -1, "{00CC00}Bom trabalho{FFFFFF}, vocк terminou a sua viagem e recebeu o seu pagamento."); DisablePlayerCheckpoint(playerid); SetPVarInt(playerid, "Voa", 0); PagoVoa(playerid, PlayerInfo[playerid][pNivelVoa],Carga[playerid]); return 1; } } Код:
error 028: invalid subscript (not an array or too many subscripts): "AVIAOPESSOAL" error 001: expected token: ",", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line Код:
if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0; |
Vocк se esqueceu de colocar um ) final em if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid)] = 0;
coloque assim: if(AVIAOPESSOAL[Respawnear(GetPlayerVehicleID(playerid))]) = 0; Sempre Confira se vocк fechou todos parкnteses e cochetes que abriu.. |
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1477.5275,1809.0818,10.8125)) { if(!IsPlayerInAnyVehicle(playerid)) return 1; if(AVIAOPESSOAL(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { Chofer[GetPlayerVehicleID(playerid)] = INVALID_PLAYER_ID; AviaoCarregado[GetPlayerVehicleID(playerid)] = 0; SendClientMessage(playerid, -1, "{00CC00}Bom trabalho{FFFFFF}, vocк terminou a sua viagem e recebeu o seu pagamento."); DisablePlayerCheckpoint(playerid); SetPVarInt(playerid, "Voa", 0); PagoVoa(playerid, PlayerInfo[playerid][pNivelVoa],Carga[playerid]); return 1; } if(AVIAON(GetPlayerVehicleID(playerid)) || AVIAOVIP(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { Chofer[GetPlayerVehicleID(playerid)] = INVALID_PLAYER_ID; AviaoCarregado[GetPlayerVehicleID(playerid)] = 0; Respawnear(autoid); SendClientMessage(playerid, -1, "{00CC00}Bom trabalho{FFFFFF}, vocк terminou a sua viagem e recebeu o seu pagamento."); DisablePlayerCheckpoint(playerid); SetPVarInt(playerid, "Voa", 0); PagoVoa(playerid, PlayerInfo[playerid][pNivelVoa],Carga[playerid]); return 1; } }