if (APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "{FF0000}Vocк nгo tem permissгo para usar esse comando!");
C:\Users\----\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(36) : error 029: invalid expression, assumed zero
C:\Users\---\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(36 -- 37) : warning 215: expression has no effect
C:\Users\---\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(37) : error 001: expected token: ";", but found "return"
C:\Users\---\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(43) : warning 225: unreachable code
if (APlayerData[playerid][PlayerLevel] < 2)
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem permissгo para usar esse comando!");
COMMAND:relatos(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/relatos", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "{FF0000}Vocк nгo й administrador");
{
// Add the first report to the list (if it exists)
if (AReports[0][ReportUsed] == true)
format(ReportList, 5000, "%s: %s\n", AReports[0][ReportName], AReports[0][ReportReason]);
// Construct the report-dialog
for (new i = 1; i < 50; i++)
{
// Check if the ReportID has been used already
if (AReports[i][ReportUsed] == true)
{
format(ReportList, 5000, "%s%s: %s\n", ReportList, AReports[i][ReportName], AReports[i]
[ReportReason]);
}
}
// Show all the reports
ShowPlayerDialog(playerid, DialogReports, DIALOG_STYLE_LIST, "Lista de Relatos:", ReportList, "Ok",
"Cancelar");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
COMMAND:relatos(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/relatos", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] < 2)
{
// Add the first report to the list (if it exists)
if (AReports[0][ReportUsed] == true)
format(ReportList, 5000, "%s: %s\n", AReports[0][ReportName], AReports[0][ReportReason]);
// Construct the report-dialog
for (new i = 1; i < 50; i++)
{
// Check if the ReportID has been used already
if (AReports[i][ReportUsed] == true)
{
format(ReportList, 5000, "%s%s: %s\n", ReportList, AReports[i][ReportName], AReports[i]
[ReportReason]);
}
}
// Show all the reports
ShowPlayerDialog(playerid, DialogReports, DIALOG_STYLE_LIST, "Lista de Relatos:", ReportList, "Ok",
"Cancelar");
}
else
return SendClientMessage(playerid, -1, "{FF0000}Vocк nгo й administrador");;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
Porquк eu nгo posso colocar o SendClientMessage na frnete da variavel if (APlayerData[playerid][PlayerLevel] < 2) ?
|
if(gay[playerid] != 1) return SendClientMessage(playerid, -1," Vocк nгo й gay, sinto muito.");
if(gay[playerid] != 1)
{
SendClientMessage(playerid, -1,"Vocк nгo й gay, sinto muito.");
return 1;
}
Pode sim cara. '-'
Exemplo(s): pawn Код:
pawn Код:
|
Tenta agora
PHP код:
|
C:\Users\---\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(41) : error 036: empty statement