Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-09-15, 22:37


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

Witam. Poszukuj? Public onplayertext, poniewaz go nie mam. Najlepiej z wgranym mowieniem w sposob rp. Polewam :piwo: !

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 08:27


SkateR121

F-A-C-K J-U






Wiek: 29
Na forum: 5457 dni
Posty: 46
Nick w MP: SkateR

Piwa: 976

Respekt: 43,4

Ostrzeżeń: 100%
Dajesz to
Kod:

public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
if(strlen(text)>65)
{
new linia[66];
format(linia, sizeof(linia), text);
strdel(linia, 66, strlen(linia));
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "BIALY"%s",NickCzat(playerid),linia);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
strdel(text, 0, 65);
format(String, sizeof(String),"... %s",text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
else
{
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "BIALY"%s",NickCzat(playerid),text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
}
return 1;
}

Na dole mapki

Kod:

WyswietlText(playerid,kolor,Float:zasieg,text[])
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
new vir=GetPlayerVirtualWorld(playerid);
new intek=GetPlayerInterior(playerid);
foreach(Player,i)
{
if(DoInRange(zasieg,i,Pos[0],Pos[1],Pos[2])&&GetPlayerInterior(i)==intek&&GetPlayerVirtualWorld(i)==vir)
{
SendClientMessage(i,kolor,text);
}
}
return 1;
}


Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 11:35


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

"SkateR121" napisał/a:

Dajesz to
Kod:

public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
if(strlen(text)>65)
{
new linia[66];
format(linia, sizeof(linia), text);
strdel(linia, 66, strlen(linia));
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "BIALY"%s",NickCzat(playerid),linia);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
strdel(text, 0, 65);
format(String, sizeof(String),"... %s",text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
else
{
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "BIALY"%s",NickCzat(playerid),text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
}
return 1;
}

Na dole mapki

Kod:

WyswietlText(playerid,kolor,Float:zasieg,text[])
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
new vir=GetPlayerVirtualWorld(playerid);
new intek=GetPlayerInterior(playerid);
foreach(Player,i)
{
if(DoInRange(zasieg,i,Pos[0],Pos[1],Pos[2])&&GetPlayerInterior(i)==intek&&GetPlayerVirtualWorld(i)==vir)
{
SendClientMessage(i,kolor,text);
}
}
return 1;
}


Kod:

public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
if(strlen(text)>65)
{
new linia[66];
format(linia, sizeof(linia), text);
strdel(linia, 66, strlen(linia));
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),linia);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
strdel(text, 0, 65);
format(String, sizeof(String),"... %s",text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
else
{
text[0] = toupper(text[0]);
format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),text);
WyswietlText(playerid,KOLOR_BIALY,7.0,String);
return 0;
}
}
return 1;
}

WyswietlText(playerid,kolor,Float:zasieg,text[])
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
new vir=GetPlayerVirtualWorld(playerid);
new intek=GetPlayerInterior(playerid);
foreach(Player,i)
{
if(DoInRange(zasieg,i,Pos[0],Pos[1],Pos[2])&&GetPlayerInterior(i)==intek&&GetPlayerVirtualWorld(i)==vir)
{
SendClientMessage(i,kolor,text);
}
}
return 1;
}


Zrobilem tak i 4 errory.

C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(238) : error 001: expected token: ";", but found "-string-"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(238) : fatal error 107: too many error messages on one line
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(238) : error 017: undefined symbol "String"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(238) : error 017: undefined symbol "String"

o to to
format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),linia);

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 11:42


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Dodaj gdzie? w mapie :
Kod:

new String[256];


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 15:25


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

"_FasteR_" napisał/a:

Dodaj gdzie? w mapie :
Kod:

new String[256];

Kod:


C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(110) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(110) : error 001: expected token: ";", but found "-string-"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(110) : error 017: undefined symbol "NickCzat"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(110) : fatal error 107: too many error messages on one line


Kod:

format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),linia);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 16:53


B!4CK

Never give UP!






Wiek: 32
Na forum: 5810 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

Up@ Jak by Ci skater nie podes?a? pro elo kodu z Honest-RP by?o by fajnie.

Musisz po usuwa? nickczat da? jako playername lub nick i takie tam .

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 17:05


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

"blackelegy" napisał/a:

Up@ Jak by Ci skater nie podes?a? pro elo kodu z Honest-RP by?o by fajnie.

Musisz po usuwa? nickczat da? jako playername lub nick i takie tam .


A pomoglbys mi?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 18:28


jona99







Wiek: 36
Na forum: 5235 dni
Posty: 103
Nick w MP: Johny_Bloom

Piwa: 71

Respekt: 45,3

wklej to gdzies na dole mapy :
Kod:


stock NickCzat(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 21:35


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : warning 215: expression has no effect
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : error 001: expected token: ";", but found "-string-"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : warning 215: expression has no effect
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : warning 215: expression has no effect
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : error 001: expected token: ";", but found ")"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(108) : fatal error 107: too many error messages on one line


format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),linia);


japierdziele!!! ;//

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-16, 22:09


jona99







Wiek: 36
Na forum: 5235 dni
Posty: 103
Nick w MP: Johny_Bloom

Piwa: 71

Respekt: 45,3

format(String, sizeof(String),"%s m?wi: "KOLOR_BIALY"%s",NickCzat(playerid),text);

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-17, 15:28


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

byla wina "kolor bialy w tekscie' teraz mam 3 tylko ;dd

C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(131) : error 017: undefined symbol "foreach"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(133) : error 017: undefined symbol "DoInRange"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(135) : error 017: undefined symbol "i"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(125) : warning 203: symbol is never used: "zasieg"

125
WyswietlText(playerid,kolor,Float:zasieg,text[])
131
foreach(Player,i)
133
if(DoInRange(zasieg,i,Pos[0],Pos[1],Pos[2])&&GetPlayerInterior(i)==intek&&GetPlayerVirtualWorld(i)==vir)
135
SendClientMessage(i,kolor,text);

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-17, 15:30


jona99







Wiek: 36
Na forum: 5235 dni
Posty: 103
Nick w MP: Johny_Bloom

Piwa: 71

Respekt: 45,3

przed foreach(Player,i) daj if(IsPlayerConnected(i))

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-17, 16:02


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

if(IsPlayerConnected(i))foreach(Player,i)

zrobilem tak

i

C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(133) : error 017: undefined symbol "i"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(133) : error 017: undefined symbol "foreach"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(135) : error 017: undefined symbol "DoInRange"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(137) : error 017: undefined symbol "i"
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(127) : warning 203: symbol is never used: "zasieg"

1 wiecej z i ;/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-17, 16:07


jona99







Wiek: 36
Na forum: 5235 dni
Posty: 103
Nick w MP: Johny_Bloom

Piwa: 71

Respekt: 45,3

if(IsPlayerConnect(i)) daj nad foreach(Player,i) xD pomyli?em si?.
Na g?rze mapy #include <foreach>, gdzies na dole
Kod:

stock DoInRange(Float: radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerInRangeOfPoint(playerid, radi, x, y, z)) return 1;
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-09-17, 16:20


Jablecznik

;*






Wiek: 26
Na forum: 5291 dni
Posty: 43
Nick w MP: Emilio Cavallaro

Piwa: 138

Respekt: 50

kocham cie.
ostatni error
C:\Users\Mama\Desktop\Server\gamemodes\grandlarc.pwn(134) : error 017: undefined symbol "IsPlayerConnect"

if(IsPlayerConnect(i))

to to robi robote

usunalem to lookne czy dziala ;d

Postaw piwo autorowi tego posta
 

 
Tagi: public :: playertext :: poszukuje
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [GF] Public on playertext, poszukuje Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku