Szerző Téma: Fejfölötti írás fs-be  (Megtekintve 1948 alkalommal)

Fejfölötti írás fs-be
« Dátum: 2011. Május 11. - 12:30:47 »
0 Show voters
sziasztok ismét sajnos egy kéréssel fordulok felétek.

az lenne a problémám h betettem egy tutoriál szerint a fej fölöttí írást (h látszodjon), de nemjeleníti meg.


0 error 0 warning volt és mégsem.


abban kérném a segítségeteket h valaki FS-be megcsinálná e nekem , de ha nem könnyû akk hadjátok :D

elõre is köszönöm

Nem elérhető Mambo

  • 4239
    • Profil megtekintése
Fejfölötti írás fs-be
« Válasz #1 Dátum: 2011. Május 11. - 12:33:59 »
0 Show voters
[pawn]//
// Example use of chat above player\'s head
//
#include <a_samp>
#include \"../include/gl_common.inc\"
#define MESSAGE_COLOR         0xEEEEEEFF
#define ECHO_COLOR              0xEEEEEEFF
#define ACTION_COLOR          0xEE66EEFF
//------------------------------------------------
public OnFilterScriptInit()
{
print(\"\\n--Speech bubble example loaded.\\n\");
return 1;
}
//------------------------------------------------
public OnPlayerText(playerid, text[])
{
 if(strlen(text) > 128) return 0;
 new to_others[MAX_CHATBUBBLE_LENGTH+1];
 new to_me[MAX_CHATBUBBLE_LENGTH+1];
 format(to_others,MAX_CHATBUBBLE_LENGTH,\"Says: %s\",text);
 format(to_me,MAX_CHATBUBBLE_LENGTH,\">> %s\",text);
     SetPlayerChatBubble(playerid,to_others,MESSAGE_COLOR,35.0,10000);
     SendClientMessage(playerid,ECHO_COLOR,to_me);
     
     return 0; // can\'t do normal chat with this loaded
}
//------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new Message[256];
new   idx;
new actiontext[MAX_CHATBUBBLE_LENGTH+1];
cmd = strtok(cmdtext, idx);
// Action command
if(strcmp(\"/me\", cmd, true) == 0)
{
    Message = strrest(cmdtext,idx);
    format(actiontext,MAX_CHATBUBBLE_LENGTH,\"* %s\",Message);
          SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,30.0,10000);
       SendClientMessage(playerid,ACTION_COLOR,actiontext);
   return 1;
}
return 0; // not handled by this script
}
//------------------------------------------------
[/pawn]
hûûû

Fejfölötti írás fs-be
« Válasz #2 Dátum: 2011. Május 11. - 17:22:05 »
0 Show voters
[pawn]D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(22) : error 025: function heading differs from prototype
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(22) : error 029: invalid expression, assumed zero
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(24) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(29) : error 021: symbol already defined: \"format\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(32) : error 021: symbol already defined: \"SetPlayerChatBubble\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(35) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(40) : error 025: function heading differs from prototype
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(40) : error 029: invalid expression, assumed zero
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(47) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(50) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(56) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(59) : error 010: invalid function or declaration
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"Message\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"actiontext\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"cmd\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"idx\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"to_me\"
D:\\Documents and Settings\\XP4ever\\Asztal\\3dtext.pwn(63) : warning 203: symbol is never used: \"to_others\"
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
12 Errors.[/pawn]
khöm:) esetleg vlamilyen inc kell hozzá ?
« Utoljára szerkesztve: 2011. Május 11. - 17:24:45 írta norbee0170 »

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Fejfölötti írás fs-be
« Válasz #3 Dátum: 2011. Május 11. - 17:35:02 »
0 Show voters
Ehhez? Alap filterscript. Frissítsd a PAWNO-dat.

Fejfölötti írás fs-be
« Válasz #4 Dátum: 2011. Május 11. - 17:41:08 »
0 Show voters
Nem kell hozzá túl sok minden a hiba abból adódik hogy innen csak kimásoltad és úgy próbáltad átfordítani amxbe.
Sajnos ezen a fórumon jelenleg használt pawn tagnek van egy kis gondja hogy a két szögletes zárójelet rosszul jelzi ki.
Ezt cseréld le
 

text&#91;]
 
[/quote]
erre:
 

text[]

 
Meg ezt cseréld le
 

cmdtext&#91;]
 
[/quote]
erre:
 

cmdtext[]
« Utoljára szerkesztve: 2011. Május 11. - 17:43:22 írta Zsolesszka »

Fejfölötti írás fs-be
« Válasz #5 Dátum: 2011. Május 11. - 17:57:45 »
0 Show voters
[pawn]D:\\Documents and Settings\\XP4ever\\Asztal\\fejfelett.pwn(6) : fatal error 100: cannot read from file: \"../include/gl_common.inc\"
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.
[/pawn]
de mér nem látja az inc-t? kerestem egy másikat és ugyan ez

Fejfölötti írás fs-be
« Válasz #6 Dátum: 2011. Május 11. - 21:13:42 »
0 Show voters
A gl_common-nak a szerver mappádban lévõ include mappában van a helye.
Ha nincs ott, próbáld meg ezt:
 
#include <gl_common>

Fejfölötti írás fs-be
« Válasz #7 Dátum: 2011. Május 13. - 08:14:22 »
0 Show voters
tudom h minek hol a helye :) de így sem jó mer már próbáltam amit javasoltál, szal passz nemtom :D talán vlaki akinek jó feltenné az amx-et  ? és akk legalább nemkellene szenvednem,és mérgelõdnöm :D

Fejfölötti írás fs-be
« Válasz #8 Dátum: 2011. Május 13. - 23:26:21 »
0 Show voters
)\" post=\"137324\" timestamp=\"1305141222\"]
A gl_common-nak a szerver mappádban lévõ include mappában van a helye.
Ha nincs ott, próbáld meg ezt:
 
#include <gl_common>

 

[/quote]
Ez igy magában hülyeség, ha nincs meg neki a gl_common.inc
Töltsd le valahonnan ha nincs benne az include mappádban.

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Fejfölötti írás fs-be
« Válasz #9 Dátum: 2011. Május 13. - 23:49:27 »
0 Show voters
public OnPlayerText(playerid,text[])

Alá:


    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);

Fejfölötti írás fs-be
« Válasz #10 Dátum: 2011. Május 14. - 11:00:35 »
0 Show voters
horike olvasd már lécives vissza ne írj már azér választ h növelhesd a hozzászólásaidat, köszönöm.

Fejfölötti írás fs-be
« Válasz #11 Dátum: 2011. Május 14. - 17:24:40 »
0 Show voters
Idézetet írta: norbee0170 date=1305363635\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"8084\" data-ipsquote-contentclass=\"forums_Topic
horike olvasd már lécives vissza ne írj már azér választ h növelhesd a hozzászólásaidat, köszönöm.
 
Ne pofázzál már nekem mert mérges leszek.
Amit fent leírtak hibátlan kell hogy legyen...

Fejfölötti írás fs-be
« Válasz #12 Dátum: 2011. Május 14. - 22:57:58 »
0 Show voters
Idézetet írta: horike13 date=1305386680\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"8084\" data-ipsquote-contentclass=\"forums_Topic


horike olvasd már lécives vissza ne írj már azér választ h növelhesd a hozzászólásaidat, köszönöm.
 
Ne pofázzál már nekem mert mérges leszek.
Amit fent leírtak hibátlan kell hogy legyen...
 
[/quote]
Drága hörike elõször is javaslom neked ezt az oldalt : http://sampforum.hu/index.php?topic=133.0
de ha lustalennél kattintani tessék:
Tilos pl a következõ : Más fórumozókat megsérteni, kritizálni nyílt témákban (PM-ben kell az ilyesmit elintézni)

Fejfölötti írás fs-be
« Válasz #13 Dátum: 2011. Május 18. - 11:13:45 »
0 Show voters
a problémámat megoldottam
Zárok

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal