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.

Wat betekend dit?

Hallo, ik had een vraag.

Ik heb dit:

format(string, sizeof(string), "Cop Message: %s heeft %s verdacht gemaakt!", oName,pName);

maar wat betekend:

1. %s

2. %s(%i)

Edited by Johannetje2

Featured Replies

de 1e %s laat de waarde van oName zien als een string.

de 2e %s laat de waarde van pName zien als een string.

Dat is de plaats waar je je variabele zal invullen.

In jouw voorbeeld: Cop Message: oName heeft pName verdacht gemaakt!

Dat zal je natuurlijk niet te zien krijgen, maar geeft gewoon aan waar het ingevuld wordt.

[table=header]Symbool|Variabele|Voorbeeld

%s|string|"dit is een string"

%d|integer|25

%i|integer|36

%f|float|-3.36[/table]

  • Author

Dat is de plaats waar je je variabele zal invullen.

In jouw voorbeeld: Cop Message: oName heeft pName verdacht gemaakt!

Dat zal je natuurlijk niet te zien krijgen, maar geeft gewoon aan waar het ingevuld wordt.

[table=header]Symbool|Variabele|Voorbeeld

%s|string|"dit is een string"

%d|integer|25

%i|integer|36

%f|float|-3.36[/table]

wat is een integer (sorry voor domme vraag)

Een geheel getal. ;)

  • Author

Een geheel getal. ;)

en wat is dan het verschil tussen 25 en 36?

Een geheel getal. ;)

en wat is dan het verschil tussen 25 en 36?

Niks.

Een geheel getal. ;)

en wat is dan het verschil tussen 25 en 36?

36-25 = 11 ;D

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.