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.

NRG Spawn Probleem

Hey,

Als ik probeer een NRG-500 te spawnen met een command, dan zie ik hem nergens staan, of ik krijg een error, en heel gta loopt vast. Het rare is dat Pawno geen fouten geeft.

  if (strcmp(cmdtext, "/nrg", true)==0)
{
 if(IsPlayerInAnyVehicle(playerid))
    {
       SendClientMessage(playerid, COLOR_RED, "You are already in a vehicle");
       return 1;
    }
    new Float:X,Float:Y,Float:Z,Float:A;
    GetPlayerPos(playerid,X,Y,Z);
    GetPlayerFacingAngle(playerid,A);
    AddStaticVehicle(522,X+1,Y+1,Z+1,A,-1,-1);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"NRG-500 Spawned");
    return 1;
}

Weet iemand het antwoord?

Alvast bedankt!

Featured Replies

Probeer eens CreateVehicle in plaats van AddStaticVehicle:

CreateVehicle (522,X+1,Y+1,Z+1,A,-1,-1,-1);

(Let op dat er bij CreateVehicle nog een extra parameter bij is gekomen (respawn_delay). Ik heb hem op -1 gezet.

Edited by =>Sandra<=

  • Author

Bedankt Sandra, Het werkt!

Heb alleen nog 2 foutmeldingen, die had ik al vanaf het begin, maar ik had er nooit last van. Natuurlijk zou ik wel willen weten wat er nou aan de hand is.

 warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection") 
warning 235: public function lacks forward declaration (symbol "GameModeExitFunc")

Het gaat om:

public SetupPlayerForClassSelection(playerid)

en

public GameModeExitFunc()

Je moet nog even (bovenaan) in je script dit zetten:

forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();

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.