Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 18:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Frage zur FuncTextCmd

Discussion on Frage zur FuncTextCmd within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
Frage zur FuncTextCmd

Hallöchen auch,
zur Zeit spiele ich etwas an meinem Code rum, um einige Dinge anzupassen und zu lernen.

Allerdings stoße ich auf eine kleine Hürde, wenn es um den Befehl /sys geht.
Ich möchte, dass vor dem Text der Username angezeigt wird. Momentan sieht mein Code so aus:

PHP Code:
BOOL TextCmd_SystemCScanner scanner )
{
#ifdef __WORLDSERVER
    
CHAR szString[512] = "";
    
CHAR szUser[30] = "";

    
CUserpUser    = (CUser*)scanner.dwValue;

    
scanner.GetLastFull();
    if( 
strlenscanner.token ) >= 512 )
        return 
TRUE;
    
strcpy(szStringscanner.token);
    
strcpy(szUserpUser->GetName());
    
sprintf(szString"[%s]: %s"szUserszString);
    
StringTrimRight(szString);

    
g_DPCoreClient.SendSystemszString );
#endif    // __WORLDSERVER
    
return TRUE;

Wenn ich das allerdings kompiliere und dann den Befehl nutze, kommt im Spiel nur [Player]: [Player]:

Woran liegt das?

Danke im Voraus.
Naltalah is offline  
Old 11/09/2018, 19:05   #2
 
elite*gold: 0
Join Date: Jul 2018
Posts: 93
Received Thanks: 59
Quote:
Originally Posted by Naltalah View Post
Hallöchen auch,
zur Zeit spiele ich etwas an meinem Code rum, um einige Dinge anzupassen und zu lernen.

Allerdings stoße ich auf eine kleine Hürde, wenn es um den Befehl /sys geht.
Ich möchte, dass vor dem Text der Username angezeigt wird. Momentan sieht mein Code so aus:

PHP Code:
BOOL TextCmd_SystemCScanner scanner )
{
#ifdef __WORLDSERVER
    
CHAR szString[512] = "";
    
CHAR szUser[30] = "";

    
CUserpUser    = (CUser*)scanner.dwValue;

    
scanner.GetLastFull();
    if( 
strlenscanner.token ) >= 512 )
        return 
TRUE;
    
strcpy(szStringscanner.token);
    
strcpy(szUserpUser->GetName());
    
sprintf(szString"[%s]: %s"szUserszString);
    
StringTrimRight(szString);

    
g_DPCoreClient.SendSystemszString );
#endif    // __WORLDSERVER
    
return TRUE;

Wenn ich das allerdings kompiliere und dann den Befehl nutze, kommt im Spiel nur [Player]: [Player]:

Woran liegt das?

Danke im Voraus.
Replace with this:

Code:
BOOL TextCmd_System( CScanner & scanner )
{
#ifdef __WORLDSERVER
	CHAR szString[512] = "";

	CUser* pUser	= (CUser*)scanner.dwValue;
	CString strName;
	strName = pUser->GetName();

	scanner.GetLastFull();
	if( strlen( scanner.token ) >= 512 )
		return TRUE;
	strcpy( szString, scanner.token );
	StringTrimRight( szString );

	g_DPCoreClient.SendSystem("[" + strName + "] " + szString);
#endif	// __WORLDSERVER
	return TRUE;
}
-Valor is offline  
Thanks
1 User
Old 11/09/2018, 19:16   #3
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
Danke, so passts. #Closepls
Naltalah is offline  
Reply


Similar Threads Similar Threads
FuncTextCmd.cpp
02/15/2018 - Flyff Private Server - 1 Replies
#Fixxed #canbeclosed
FRAGE FRAGE FRAGE FRAGE FRAGE FRAGE FRAGE
03/21/2011 - Technical Support - 5 Replies
Hi Leute, Habe ein Problem mit meinen PC. Habe Win 7 drauf will ihn formatieren also komlett reseten auf werkseinstellungen. Eine Recovery CD ist net dabei ( ist ein Notebook falls es wichtig ist xD ). Habe es mit dem format c probiert dann klick ich das an öffnet sich nur ein schwarzes kleines fenster das sich sofort wieder schließt. Wahrscheinlich falsche ruprik für solche probleme verschiebt mich einfach xDD. Danke im Vorraus ;) MFG



All times are GMT +1. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.