error 029: invalid expression, assumed zero - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: error 029: invalid expression, assumed zero (
/showthread.php?tid=460956)
error 029: invalid expression, assumed zero -
AndersonAq - 30.08.2013
PHP код:
if (PlayerFile_Load(playerid) == 1)
{
// Check if the player is still banned
if (APlayerData[playerid][BanTime] < gettime()) // Player ban-time is passed
format(StrRegistroLogin, sizeof(StrRegistroLogin), "Logando..", "{87CEFA}Seja bem vindo.\n{FFFFFF}Status da conta: {7CFC00}Cadastrada.\n{FFFFFF}Seu IP: {7CFC00}%d\n\n {FFFFFF}Insira sua senha para logar.", ipdele);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Logar", StrRegistroLogin, "Logar", "Cancelar");
else // Player is still banned
{
ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds
Kick(playerid); // Kick the player
}
}
Erro:
PHP код:
error 029: invalid expression, assumed zero
Linha:
O que pode ser?
Re: error 029: invalid expression, assumed zero -
Juniiro3 - 30.08.2013
PHP код:
if (PlayerFile_Load(playerid) == 1)
{
// Check if the player is still banned
if (APlayerData[playerid][BanTime] < gettime()) // Player ban-time is passed
{
format(StrRegistroLogin, sizeof(StrRegistroLogin), "Logando..", "{87CEFA}Seja bem vindo.\n{FFFFFF}Status da conta: {7CFC00}Cadastrada.\n{FFFFFF}Seu IP: {7CFC00}%d\n\n {FFFFFF}Insira sua senha para logar.", ipdele);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Logar", StrRegistroLogin, "Logar", "Cancelar");
}
else // Player is still banned
{
ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds
Kick(playerid); // Kick the player
}
}
Tenta assim
Re: error 029: invalid expression, assumed zero -
bruxo00 - 30.08.2013
Falta as
{}.