24.08.2010, 03:56
Quote:
ya, el codigo estaba mal xD
PD: ahora no vas a poder banearte a ti mismo. pawn Code:
|
Code:
C:\Documents and Settings\Usuario\Mis documentos\Downloads\Compressed\samp1\filterscripts\sistemas.pwn(2079) : error 001: expected token: ";", but found "-identifier-" C:\Documents and Settings\Usuario\Mis documentos\Downloads\Compressed\samp1\filterscripts\sistemas.pwn(2079) : error 017: undefined symbol "m" C:\Documents and Settings\Usuario\Mis documentos\Downloads\Compressed\samp1\filterscripts\sistemas.pwn(2079) : error 017: undefined symbol "Index" C:\Documents and Settings\Usuario\Mis documentos\Downloads\Compressed\samp1\filterscripts\sistemas.pwn(2079) : fatal error 107: too many error messages on one line
pawn Code:
dcmd_ban(playerid, params)
{
if(PlayerInfo[playerid][Nivel] >= 3){
new tmp[256], tmp2[256]m Index; // Linea 2079 aca esta el error
tmp = strtok(params, Index);
tmp2 = strtok(params, Index);
if(!strlen(params))return SendClientMessage(playerid, 0xFFFFFFFF, "Uso: /ban [ID] (opcional)[Razуn]");
new id, name[MAX_PLAYER_NAME], str[128];
id = strval(tmp);//faltaba esta linea fundamental
if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID || id == playerid)return SendClientMessage(playerid, Rojo, "Jugador no Conectado");
GetPlayerName(playerid, name, sizeof(name));
if(!strlen(tmp2))format(str, sizeof(str), "***%s (id: %i) Fue Baneado por un admin. [Razуn: No se dio]", nombre, id);
else format(str, sizeof(str), "***%s (id: %i) Fue Baneado por un admin. [Razуn: %s]", nombre, id, params[2]);
SendClientMessageToAll(Rojo, str);
return ban(id);
}else return SendClientMessage(playerid, Rojo, "Que intentas?");
}