[POMOC] T chat

Započeo David003, Septembar 30, 2012, 22:23:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Opis problema: Kako da stavim da kad netko pise na T chatu da dode onako bjelo i da se vidi u okruzenju 2 metra,znaci da nevide svi nego samo oni u okruzenju 2 metra i da se iznad igraca poja 3d text ono sto je napisao i da traju 5 sekundi?
Dio skripte: //
Slika/Video: //

Uskoro!
Usput trazim mapera,inbox zainteresirani!

public OnPlayerText(playerid, text[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s kaze: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
Skriptam za novac ! Javite mi se preko privatne poruke !
[/B]

Oke hvala,a jel ce se prikazat 3d text inzad glave kad ce netko nesto rec?

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Eh da, to sam ti zaboravio staviti, stavi ovako i prikazat ce ti se ...

public OnPlayerText(playerid, text[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s kaze: %s", sendername, text);
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
Skriptam za novac ! Javite mi se preko privatne poruke !
[/B]

To ti je ta funkcija, tu mozes podesiti boju, distancu i sve

http://wiki.sa-mp.com/wiki/SetPlayerChatBubble
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
Poslednja Izmena: Septembar 30, 2012, 22:31:45 POSLE PODNE od [E:RP] Danijel96.pwn
Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747

Izbacuje mi ovaj error
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(242) : error 017: undefined symbol "ProxDetector"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Dodaj ovako pri kraju moda ili tamo gde ti stoje stockovi

stock ProxDetectorS(Float:radi, playerid, targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
		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);
		GetPlayerPos(targetid, posx, posy, posz);
		tempposx = (oldposx -posx);
		tempposy = (oldposy -posy);
		tempposz = (oldposz -posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747

jesam ali opet mi izbacuje isto :/

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Oprostite na DP ili kako se to vec zove
Ovako izgleda moj pawno nisam jos nista napravio ali me zanima zasto taj error izbacuje
Evo:  http://pastebin.com/u96k9pTx

Uskoro!
Usput trazim mapera,inbox zainteresirani!


Izbacuje mi ove errore

C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(242) : error 017: undefined symbol "COLOR_FADE1"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(400) : error 017: undefined symbol "foreach"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(401) : warning 217: loose indentation
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(402) : error 017: undefined symbol "i"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(404) : error 017: undefined symbol "BigEar"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(404) : error 017: undefined symbol "i"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(404) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(404) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Vegas.

Definiraj boju, stavi foreach kao include..

Jesam i sad dolaze ova 4 errora

C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(405) : error 017: undefined symbol "BigEar"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(405) : warning 215: expression has no effect
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(405) : error 001: expected token: ";", but found "]"
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(405) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(405) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Vegas.

Ispod include.
new BigEar[MAX_PLAYERS];

Hvala sad sve radi nema errora mozes lock :)

Uskoro!
Usput trazim mapera,inbox zainteresirani!