Duda sobre errores
#1

Quote:

D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(3127) : warning 204: symbol is assigned a value that is never used: "supportid"
D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(23536) : error 028: invalid subscript (not an array or too many subscripts): "Reports"
D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(23536) : warning 215: expression has no effect
D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(23536) : error 001: expected token: ";", but found "]"
D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(23536) : error 029: invalid expression, assumed zero
D:\Server CM\Las Venturas Role Play\gamemodes\larp.pwn(23536) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Lineas:



Quote:

zcmd(re, playerid, params[])
{
if(!IsPlayerConnected(playerid)) return Message(playerid, COLOR_GRAD2, "No estбs conectado");
if(JustReported[playerid] == 1) return Message(playerid, COLOR_GRAD2, "{D3D751}2 Minutos {FFFFFF}para enviar otro reporte!");
if(sscanf(params, "us[64]", params[0], params[1])) return Message(playerid, COLOR_GRAD2, "* Use: (/re)portar <playerid> <Razуn>");
if(IsPlayerConnected(params[0]))
{
new string[128];
format(string, sizeof(string), "{FA4E60}Reporte: [ID:%d]%s, Reporta a: [ID:%d]%s", playerid, PlayerName(playerid), params[0], PlayerName(params[0]));
ABroadCast(-1, string, 1);
format(string, sizeof(string), "{FA4E60}Razon: %s", params[1]);
ABroadCast(-1, string, 1);
SendClientMessage(playerid, 0x009D4FFF, "Tu reporte fue enviado con exito a los Administradores y sera procesado!");
JustReported[playerid] = 1;
PlayerNeedsHelp[playerid] = 1;
SetTimerEx("ReportReset", 120000, false, "i", playerid);
new Reports;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s ha reportad a %s por: %s",d,m,y,h,mi,s,PlayerName(playerid),params[0], PlayerName(params[0]));
ReportLog(string);
Reports[MAX_REPORTS] = string;



} else Message(playerid, COLOR_GRAD2, " Ese jugador estб desconectado.");
return 1;
}

zcmd(reportes, playerid, params[])

{
if(PlayerInfo[playerid][pAdmLvlCmd] >= 1)
{
new Reports;
new ReportCount;
for(new i = 1; i < MAX_REPORTS; i++)
{
if(strcmp( Reports[i], "<none>", true) != 0) { ReportCount++; SendClientMessage(playerid, COLOR_GRAD3, "Last Nine Reports:"); SendClientMessage(playerid,COLOR_GRAD1,Reports[i]); }
}
if(ReportCount == 0)
{
SendClientMessage(playerid,COLOR_GRAD1," There have been no reports");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"ERROR: You are not Authorized to use This Command!");
}
return 1;
}

El Max Reports y todo esta bien ajustado.
Reply


Messages In This Thread
Duda sobre errores - by Magnetto - 14.08.2011, 16:24
Respuesta: Duda sobre errores - by leaNN! - 14.08.2011, 16:29
Respuesta: Duda sobre errores - by Magnetto - 14.08.2011, 16:31
Respuesta: Duda sobre errores - by leaNN! - 14.08.2011, 16:36
Respuesta: Duda sobre errores - by Magnetto - 14.08.2011, 16:39
Respuesta: Duda sobre errores - by TiNcH010 - 14.08.2011, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)