Jump 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.

Ik ben bezig een PAWN script te veranderen zodat het een andere game mode word maar ik stuit nu al op een probleem. Ik heb in een bepaald deel 2 tekst codes staan maar hij weergeeft alleen maar de laatste tekst. Hoe kan ik er voor zorgen dat hij ook de eerdere tekst weergeeft?

Dit is de code:

public OnPlayerEnterCheckpoint(playerid) {

switch (gPlayerCheckpointStatus[playerid]) {

	case CHECKPOINT_PLANE:

		{

			GameTextForPlayer(playerid, "Land save on verdant meadows and get your self some weapons and a vehicle.", 2000, 5);

			SetPlayerInterior(playerid,0);

			SetPlayerPos(playerid, 383.1486, 2539.934, 291.9376);

			SetPlayerCheckpoint(playerid,268.5821,1883.8224,-30.0938, 5.0);

			gPlayerCheckpointStatus[playerid] = CHECKPOINT_AREA51;

			GameTextForPlayer(playerid, "Then go to area 51 with your team to plant the bombs", 2000, 5);

		}

	case CHECKPOINT_AREA51:

		{

			DisablePlayerCheckpoint(playerid);

			gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;

			EndTheRound(ATTACK_WIN);

		}

	  default:

		{

			DisablePlayerCheckpoint(playerid);

		}

}

return 1;

}

Greetz :sigaar:

Edited by Galiorix

Featured Replies

Die eerste word niet weergegeven omdat die 2e tekst op hetzelfde moment word 'geactiveerd'

Dingen die je kan doen:

- SendClientMessage gebruiken in plaats van GameTextForPlayer

- Een timer gebuiken

- De 2 teksten samenvoegen.

  • Author

Inmiddels is het hele script weer verandert maar ik zou graag willen weten hoe je er een timer op zet :*D

Alvast bedankt,

Greetz :sigaar:

- SetTimer, hiermee zet je dus een timer

Het gebruik van een timer is trouwens iets ingewikkelder dus ik raad je aan om gewoon alles in één tekst te zetten. Trouwens hier zijn een aantal dingen die je in je tekst kan gebruiken:

~n~ - nieuwe regel

~r~ - rode tekst

~g~ - groene tekst

~b~ - blauwe tekst

~w~ - witte tekst

~y~ - gele tekst

~p~ - paarse tekst

~l~ - zwarte tekst

~h~ - maakt je tekst lichter (als je het teveel in een regel zet dan wordt je tekst wit) en het werkt niet op een zwarte achtergrond

Dus dan doe je bijvoorbeeld:

GameTextForPlayer(playerid, "Land save on verdant meadows and get your self some weapons and a vehicle.~n~Then go to area 51 with your team to plant the bombs", 2000, 5);

Dan krijg je twee lijnen tekst onder elkaar :Y

Edited by Argon

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.

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.