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 heb ik in deze string verkeert gedaan?

Hoi, als ik een string probeer te maken voor een voertuig id (die wordt ingevoert met een dialog) komt er een foutmelding. Het script:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2){
    if(response == 1){
        new string[64];
	format(string,sizeof(string),"%s",inputtext);
	plane = CreateVehicle(string, 100.0, 0.0, 50000.0, 0.0, 2, 118, 5000);
	PutPlayerInVehicle(playerid, plane, 0);
	return 1;
    }
    return 0;	
}
}

Kent iemand hier de oplossing voor?

Gr. Kayle

Edited by kayle

Featured Replies

Wat wil je überhaupt met die string? Je gebruikt hem namelijk nergens.

  • Author

Wat wil je überhaupt met die string? Je gebruikt hem namelijk nergens.

Ik zet toch: plane = CreateVehicle(string, .....? En wat moet ik anders doen? het is de bedoeling dat je het id van het voertuig kunt invullen.

De foutcode is: error 035: argument type mismatch (argument 1)

Gr. Kayle

Ah, excuses :$ Per ongeluk overheen gelezen.

Waarom zet je het trouwens eerst nog in een string? Daarnaast zet jij het in een string (tekst), terwijl het om een integer (getallen) gaat. Als ik jou was zou ik gewoon string in CreateVehicle vervangen door inputtext. Kan zijn dat ik er naast zit, maar dat zou gewoon moeten werken.

  • Author

Ah, excuses :$ Per ongeluk overheen gelezen.

Waarom zet je het trouwens eerst nog in een string? Daarnaast zet jij het in een string (tekst), terwijl het om een integer (getallen) gaat. Als ik jou was zou ik gewoon string in CreateVehicle vervangen door inputtext. Kan zijn dat ik er naast zit, maar dat zou gewoon moeten werken.

Hier dacht ik eerst ook aan, maar toen kreeg ik deze error:

error 035: argument type mismatch (argument 1)

Gr. Kayle

plane = CreateVehicle(strval(inputtext), 100.0, 0.0, 50000.0, 0.0, 2, 118, 5000);

:)

  • Author

plane = CreateVehicle(strval(inputtext), 100.0, 0.0, 50000.0, 0.0, 2, 118, 5000);

:)

Hartelijk dank :klap: Big Boss!

Het probleem is opgelost :D

Gr. Kayle

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.