10.05.2015, 23:29
Erro:
C:\Users\User\Windows\Gamemode\gamemodes\new.pwn(2 1516) : error 028: invalid subscript (not an array or too many subscripts): "JetpackLiberado"
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : warning 215: expression has no effect
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : error 001: expected token: ";", but found "]"
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : error 029: invalid expression, assumed zero
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : fatal error 107: too many error messages on one line
Variavel:
new JetpackLiberado;
Code:
if(strcmp(cmd, "/Jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(JetpackLiberado == 0)
{
SendClientMessage(playerid,COR_ERRO,"| ERRO | Vocк sу pode pegar um Jetpack a cada 15 Minutos");
}
else if(JetpackLiberado == 1)
{
SetPlayerSpecialAction(playerid, 2);
SendClientMessage(playerid, COR_BRANCO, "Info: Vocк pegou sua Mochila a Jato !");
JetpackLiberado[playerid] = 0;
SetTimerEx("TempoJetpack", 150000, 0, "i", playerid);
return true;
}
}
return true;
}
C:\Users\User\Windows\Gamemode\gamemodes\new.pwn(2 1516) : error 028: invalid subscript (not an array or too many subscripts): "JetpackLiberado"
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : warning 215: expression has no effect
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : error 001: expected token: ";", but found "]"
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : error 029: invalid expression, assumed zero
C:\Users\User\Windows\GM\Gamemode\new.pwn(21516) : fatal error 107: too many error messages on one line
Variavel:
new JetpackLiberado;
Code:
if(strcmp(cmd, "/Jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(JetpackLiberado == 0)
{
SendClientMessage(playerid,COR_ERRO,"| ERRO | Vocк sу pode pegar um Jetpack a cada 15 Minutos");
}
else if(JetpackLiberado == 1)
{
SetPlayerSpecialAction(playerid, 2);
SendClientMessage(playerid, COR_BRANCO, "Info: Vocк pegou sua Mochila a Jato !");
JetpackLiberado[playerid] = 0;
SetTimerEx("TempoJetpack", 150000, 0, "i", playerid);
return true;
}
}
return true;
}