[Pomoc] radio,poruka.


Započeo Otisao s Foruma!, Februar 18, 2012, 23:14:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


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;
}
[[/center]
DgL <3
Otisao s Foruma zz


Dodaj ovako ako sam te dobro shvatio
new sendername[MAX_PLAYER_NAME];
new string[256];
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);
Poslednja Izmena: Februar 18, 2012, 23:57:47 POSLE PODNE od gReeDy.aMx

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.
[[/center]
DgL <3
Otisao s Foruma zz


Citat: ¢fgâ,,¢'87 poslato Februar 19, 2012, 00:02:11 PRE PODNE
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
Poslednja Izmena: Februar 19, 2012, 00:06:56 PRE PODNE od antoniotno97

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);
[[/center]
DgL <3
Otisao s Foruma zz


forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);

ovo ubaci i probaj....

nece opet :S
[[/center]
DgL <3
Otisao s Foruma zz


Moras dodati i public probaj ovako
new BigEar[MAX_PLAYERS];
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[i])
				{
					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;
}
Poslednja Izmena: Februar 19, 2012, 04:07:51 PRE PODNE od gReeDy.aMx

Citat: antoniotno97 poslato Februar 19, 2012, 00:06:19 PRE PODNE
Citat: ¢fgâ,,¢'87 poslato Februar 19, 2012, 00:02:11 PRE PODNE
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 ...

Citat: [TG]$--L84S--$ poslato Februar 19, 2012, 11:34:00 PRE PODNE
Citat: antoniotno97 poslato Februar 19, 2012, 00:06:19 PRE PODNE
Citat: ¢fgâ,,¢'87 poslato Februar 19, 2012, 00:02:11 PRE PODNE
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 [cenzura]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  :D

Moze lock!
[[/center]
DgL <3
Otisao s Foruma zz