[Pomoc] radio,poruka.

18. Feb. 2012. Zaključano
1,011
pregleda
10
postova
cfg:)
5
Underboss
18. Feb. 2012.
Skripta koju koristim: FG
Detaljan opis problema: e kako ovdje da dodam kada neko kuca radio da izbaci npr poruku kao onu za kapije kad se otvara npr meho otvara radio panel /radio.
Dio skripte:
else if(strcmp(tmp, "play", true) == 0)
{

    SendClientMessage(playerid, 0xFF330000, "Odaberite radio stanicu");
ShowPlayerDialog(playerid, 9998, DIALOG_STYLE_LIST, "radio", "RADIO: TDI \nRADIO: COOL \nRADIO: PINK", "Izaberi", "Izadji");
return 1;
}

return 1;
}
else
{
SendClientMessage(playerid, 0xFF330000, "Morate biti u vozilu da slusate radio!");
return 1;
}
}
return 0;
}
Savo
4
Shot Caller
18. Feb. 2012.
Dodaj ovako ako sam te dobro shvatio

new sendername;
new string;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s otvara radio panel /radio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
cfg:)
5
Underboss
18. Feb. 2012.
ubacim tako i eror miizbaci ovaj.
C:\Documents and Settings\kk\Desktop\rp \filterscripts\o.pwn(84) : error 017: undefined symbol "ProxDetector"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
antoniotno97
3
Hustler
18. Feb. 2012.
¢fg™'87 wrote on February 18, 2012, 11:02 pm:
ubacim tako i eror miizbaci ovaj.
C:\Documents and Settings\kk\Desktop\rp \filterscripts\o.pwn(84) : error 017: undefined symbol "ProxDetector"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


Moras stavit na vrh skripte
define# ProxDetector
cfg:)
5
Underboss
18. Feb. 2012.
ima jos ovaj warning.
C:\Documents and Settings\kk\Desktop\rp\filterscripts\o.pwn(86) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Warning.


ova linija je to...
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Ljube_Savic
4
Enforcer
18. Feb. 2012.
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);

ovo ubaci i probaj....
cfg:)
5
Underboss
18. Feb. 2012.
nece opet :S
Savo
4
Shot Caller
19. Feb. 2012.
Moras dodati i public probaj ovako

new BigEar;
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if(!BigEar)
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}
else
{
SendClientMessage(i, col1, string);
}
}
}
}
return 1;
}
Luis
5
Godfather
19. Feb. 2012.
antoniotno97 wrote on February 18, 2012, 11:02 pm:
ubacim tako i eror miizbaci ovaj.
C:\Documents and Settings\kk\Desktop\rp \filterscripts\o.pwn(84) : error 017: undefined symbol "ProxDetector"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


Moras stavit na vrh skripte
define# ProxDetector


nemoj pricati gluposti ...
ON: makni ovo sta si stavio i stavi public Prox ...
cfg:)
5
Underboss
19. Feb. 2012.
Quote from February 18, 2012, 11:02 pm:
ubacim tako i eror miizbaci ovaj.
C:\Documents and Settings\kk\Desktop\rp \filterscripts\o.pwn(84) : error 017: undefined symbol "ProxDetector"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


Moras stavit na vrh skripte
define# ProxDetector


nemoj pricati osti ...
ON: makni ovo sta si stavio i stavi public Prox ...

hvala brate cim sam ovo obrisao define# ProxDetector
i dodao ono gore sto je gredy dao radi sve hvalaaaa svima  😄

Moze lock!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha