28/07/2021 11:59
(28/07/2021 11:56)J.E Escreveu: Estou com problema ao compilar me ajudem por favor
Linhas:Código:C:\Users\Administrator\Desktop\GM Roleplay - Dominio SAMP\filterscripts\roubobanco.pwn(14) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\GM Roleplay - Dominio SAMP\filterscripts\roubobanco.pwn(14) :
215: expression has no effect
C:\Users\Administrator\Desktop\GM Roleplay - Dominio SAMP\filterscripts\roubobanco.pwn(14) : error 001: expected token: ";", but found "if"
C:\Users\Administrator\Desktop\GM Roleplay - Dominio SAMP\filterscripts\roubobanco.pwn(14) : error 036: empty statement
C:\Users\Administrator\Desktop\GM Roleplay - Dominio SAMP\filterscripts\roubobanco.pwn(14) : fatal error 107: too many error messages on one line
Código:#include <a_samp>
#include <Streamer>
#include <sscanf>
#define COLOR_PINK 0xFF66FFAA
#define COLOR_RED 0xF60000AA
forward roubar(playerid);
forward Robbank(playerid);
public OnPlayerCommandText ()
{
new cmd[128];
else if(strcmp (cmd,"/roubar",true) ==0);
{
if(!IsPlayerInRangeOfPoint(playerid ,30,30, 1435.23, -981.54, 983.65 )) return SendClientMessage(playerid , COLOR_PING , "Voce Nao Esta no Cofre Banco /cofrebanco que estara Perto da Porta Azul");
if(IsPLayerInRangeOfPoint(playerid , 30 , 30, 1435.23, -981.54, 983.65 ))
{
new stringa[259];
new sendernome [MAX_PLAYER_NOME];
GetPlayerNome(playerid, sendername, sizeof(sendername));
formet(stringa,sizeof(stringa), "**%s esta Roubando o Banco **", sendername);
ProxDetector(15.0, playerid , stringa , COLOR_RED , COLOR_RED ,COLOR_RED , COLOR_RED , COLOR_RED);
SetTimerEx("Robbank" ,6000,0,"i", playerid);
Kils = SetTimerEx ("roubar" ,3500,1,"i",playerid);
ApplyAnimation(playerid, "ROB_BANK","CAT_Safe_Open_O" ,3.0,0,0,0,0,0);
robmoney[playerid] =random(15000);
}
return 1;
}
public roubar(playerid)
{
ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Open_O",3.0,0,0,0,0,0);
}
public Robbank(playerid)
{
SendClientMessage(playerid, COLOR_PINK, "Voce Roubou o Banco Agora Fuga, Para Nao ser Preso!!");
KillTimer(Kils);
ClearAnimations(playerid);
GivePlayerMoney(playerid, robmoney[playerid]);
return 1;
}
return 1;
}
public OnFilterScriptExit ()
{
return 1;
}
Qual o sentido desse else if? Apague ele.