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.

show playerid in gametext for all

Het is eigenlijk kwa onderwerp al duidelijk als ik een player de code in wil laten typen bevoorbeeld /zwerver

dat er dan in een gametextforall("~W~playerid is zwerver geworden); dat tie dan in dat berichtje voor iedereen de playerid die de code in heeft getypt weer geeft dus op het plaatsje van de tekst playerid ik had dit al geprobeerd [iD] maar toen in game gaf hij dit weer ID* IS ZWERVER GEWORDEN

HEluuup graag.

Dank jullie alfast greats xwa

Edited by Xwa

Featured Replies

Kwa is qua trouwens ;). Maar dit zou moeten werken:

new mssg[256];
format(mssg,sizeof(mssg),"~w~%d is een zwerver!",playerid);
GameTextForAll(mssg);

Enjoy ;)

  • Author

Kwa is qua trouwens ;). Maar dit zou moeten werken:

new mssg[256];
format(mssg,sizeof(mssg),"~w~%d is een zwerver!",playerid);
GameTextForAll(mssg);

Enjoy ;)

Hij geeft in dit stukje ( GameTextForAll(mssg); ) twee warnings

Hier het hele stukje

if(strcmp(cmd, "/zwerver", true) == 0) {

new mssg[256];

format(mssg,sizeof(mssg),"~w~%d is een zwerver!",playerid);

GameTextForAll(mssg);

return 1;

}

Edited by Xwa

GameTextForAll is een "custom"-functie. Dus ik denk dat je die niet in je script hebt staan. Kijk anders eens in voorbeeld scripts voor deze functie.

  • Author

Gametext for all heb ik wel ergens in mijn script staan alleen moet er 8000,3 achter dat zal het probleem wel wezen.

EDIT:Probleem lag aan wat ik net zij van dat 8000,3 der achter hij werkt hartelijk dank jarno :D

Edited by Xwa

Ik dacht al zoiets, want in de functies die ik heb gebruikt waren die 2 parameters van weergave tijd en soort tekst wel nodig. Geen probleem ;).

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.