//==============================================================================
#include <a_samp>
//==============================================================================
forward Funciona(playerid);
public Funciona(playerid);
//==============================================================================
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ligarsom", cmdtext, true) == 0)
{
new NaoFloda[MAX_PLAYERS];
new Float:X, Float:Y, Float:Z, Float:Distancia = 30.0;
if(NaoFloda[playerid] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, Distancia, X, Y, Z))
{
GetPlayerPos(playerid, X, Y, Z);
NaoFloda[playerid] = 1;
PlayAudioStreamForPlayer(playerid, "https://www.dropbox.com/s/inhjvoxw6h1ht05/Basshunter%20-%20Now%20your%20gone.mp3", X, Y, Z, Distancia, 1);
}
return true;
}
if (strcmp("/deslisom", cmdtext, true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, Distancia, X, Y, Z))
{
NaoFloda[playerid] = 0;
StopAudioStreamForPlayer(playerid);
}
return true;
}
return true;
}
C:\Users\bruno\Desktop\novos server\tudo da [zD]\zD-com objetos\filterscripts\RadioPerto.pwn(47) : error 030: compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
forward Funciona(playerid);
public Funciona(playerid);
Retira isso
pawn Код:
|
C:\Users\bruno\Desktop\novos server\tudo da [zD]\zD-com objetos\filterscripts\RadioPerto.pwn(44) : error 030: compound statement not closed at the end of file (started at line 18)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
#include <a_samp>
public OnFilterScriptInit() {
return true;
}
public OnFilterScriptExit() {
return true;
}
public OnPlayerConnect(playerid) {
return true;
}
new NaoFloda[MAX_PLAYERS];
new Float:X, Float:Y, Float:Z;
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/ligarsom", true)) {
if(NaoFloda[playerid] == 0) {
if(IsPlayerInRangeOfPoint(playerid, 30.0, X, Y, Z)) {
GetPlayerPos(playerid, X, Y, Z);
NaoFloda[playerid] = 1;
PlayAudioStreamForPlayer(playerid, "https://www.dropbox.com/s/inhjvoxw6h1ht05/Basshunter%20-%20Now%20your%20gone.mp3", X, Y, Z, 30.0, 1);
}
}
return true;
}
if(!strcmp(cmdtext, "/desligarsom", true)) {
if(!IsPlayerInRangeOfPoint(playerid, 30.0, X, Y, Z)) {
NaoFloda[playerid] = 0;
StopAudioStreamForPlayer(playerid);
}
return true;
}
return false;
}
pawn Код:
|
#include <a_samp>
public OnFilterScriptInit() {
return true;
}
public OnFilterScriptExit() {
return true;
}
public OnPlayerConnect(playerid) {
return true;
}
new NaoFloda[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/ligarsom", true)) {
new Float:X, Float:Y, Float:Z;
if(NaoFloda[playerid] == 0) {
for(new i = 0; i < MAX_PLAYERS; i++) {
GetPlayerPos(playerid, X, Y, Z);
if(IsPlayerInRangeOfPoint(i, 30.0, X, Y, Z)) {
NaoFloda[playerid] = 1;
PlayAudioStreamForPlayer(i, "https://www.dropbox.com/s/inhjvoxw6h1ht05/Basshunter%20-%20Now%20your%20gone.mp3", X, Y, Z, 30.0, 1);
}
}
}
return true;
}
if(!strcmp(cmdtext, "/desligarsom", true)) {
new Float:X, Float:Y, Float:Z;
for(new i = 0; i < MAX_PLAYERS; i++) {
GetPlayerPos(playerid, X, Y, Z);
if(!IsPlayerInRangeOfPoint(i, 30.0, X, Y, Z)) {
NaoFloda[playerid] = 0;
StopAudioStreamForPlayer(i);
}
}
return true;
}
return false;
}