CMD:radio(playerid)
{
SendAdminText(playerid, "/radio", params);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
return 1;
}
CMD:s(playerid)
{
SendAdminText(playerid, "/s", params);
StopAudioStreamForPlayer(playerid);
return 1;
}
colokei
#define SendAdminText e ainda continua e deu esses erros. C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : error 017: undefined symbol "params" C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : warning 215: expression has no effect C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : error 017: undefined symbol "params" C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : warning 215: expression has no effect |
CMD:radio(playerid, params[])
{
SendAdminText(playerid, "/radio", params);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
return 1;
}
CMD:s(playerid, params[])
{
SendAdminText(playerid, "/s", params);
StopAudioStreamForPlayer(playerid);
return 1;
}
CMD:radio(playerid)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
return 1;
}
CMD:s(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
// This function sends the given text to all admins
SendAdminText(playerid, command[], text[])
{
// Setup local variables
new Name[24], Msg[128];
// Loop through all players
for (new i; i < MAX_PLAYERS; i++)
{
// Check if the player is an admin
if (APlayerData[i][PlayerLevel] > 0)
{
// Get the player's name
GetPlayerName(playerid, Name, sizeof(Name));
// Send the given text to the admin
format(Msg, 128, "{00FFCC}%s used: %s %s", Name, command, text);
SendClientMessage(i, 0xFFFFFFFF, Msg);
}
}
// Also log all used commands in the server.log file
format(Msg, 128, "%s used: %s %s", Name, command, text);
print(Msg);
}
#define ID_Padrao 5757
#include <a_samp>
#include <zcmd>
#include <DOF2>
new LoadedID = ID_Padrao;
public OnFilterScriptInit()
{
if(!fexist("FS_Config.CS.ini"))
{
DOF2_CreateFile("FS_Config.CS.ini");
DOF2_SetInt("FS_Config.CS.ini","ID", ID_Padrao);
DOF2_SaveFile();
}
if(DOF2_GetInt("FS_Config.CS.ini","ID") > 0 && DOF2_GetInt("CS_Config.CS.ini","ID") < 9999)
{
LoadedID = DOF2_GetInt("FS_Config.CS.ini","ID");
}
print("\nSistema de Rбdio");
print("Rбdio Total Dance...");
print("100%\n");
printf("Current DialogID: %i", LoadedID);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
return 0;
}
public OnPlayerCommandReceived(playerid,cmdtext[]){return 1;}
public OnPlayerConnect(playerid){return 1;}
public OnFilterScriptExit()
{
return 1;
}
CMD:radio(playerid)
{
SendAdminText(playerid, "/radio", params);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
return 1;
}
CMD:s(playerid)
{
SendAdminText(playerid, "/s", params);
StopAudioStreamForPlayer(playerid);
return 1;
}
CMD:radio(playerid)
CMD:s(playerid)
CMD:radio(playerid, params[])
CMD:s(playerid, params[])
stock SendAdminText(playerid, comando[], params[]) //Para administradores RCON.
{
new STR[129];
new NickName[25];
GetPlayerName(playerid, NickName, 25);
format(STR, 129, "%s usou:{FFFFFF} %s %s", NickName, comando, params);
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(IsPlayerAdmin(x))
{
SendClientMessage(x, 0xFF0000FF, STR);
}
}
return 1;
}
DOF2_Exit();