Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GetPlayerName

Hoi, ik heb bijvoorbeeld dit in een teleport staan:

		
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s has teleported to Drift Four [/drift]", name );
SendClientMessageToAll(0xFFFF00AA, string);

maar als iemand ernaartoe gaat, komt niet alles er te staan, het achterste deel van de zin is weg.

weet iemand hoe ik dit kan oplossen?

Featured Replies

Langere string gebruiken. Zoek iets van 128, maximale chat string.

@Hieronder: 256 is eigenlijk een behoorlijk onverstandige string grootte. Bijna niks heeft zo groot nodig, en daarnaast maken grotere strings je server ook trager.

Edited by Remi-X

Hoi, ik heb bijvoorbeeld dit in een teleport staan:

		
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s has teleported to Drift Four [/drift]", name );
SendClientMessageToAll(0xFFFF00AA, string);

maar als iemand ernaartoe gaat, komt niet alles er te staan, het achterste deel van de zin is weg.

weet iemand hoe ik dit kan oplossen?

Probeer je string size eens wat hoger te zetten, ook raad ik je aan Hetvolgende te doen:

new string[256] // of [128]

  • Author

Ok bedankt, weet niets van strings namelijk :puh:

Ok bedankt, weet niets van strings namelijk :puh:

Normaal is het altijd 256 :)

Maar, omdat dit ook veel geheugen gebruikt is het nu gebruikelijk om 128 te gebruiken :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.