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.

Probleem met .ini files

Hey!!

Ik ben bezig met een house systeem (en de vehicle systeem zou ongeveer zo werken). Als je /createhouse doet krijg je dus een huis en worden de variables ingevult. Dit werkt allemaal prima alleen overwrite hij telkens de file i.p.v een nieuwe te maken. Ik wil dat telkens als je /createhouse doet er een nieuwe file komt (en zo dus een extra huis). Zo krijg je dus 1.ini, 2.ini enz enz.

Dit is wat ik heb:

enum hInfo

{

hOwner[MAX_PLAYER_NAME],

hDes[256],

Float:hX,

Float:hY,

Float:hZ,

Float:hA,

hInterior,

hWorld,

hPrice,

hRent,

hOwned,

}

new HouseInfo[MAX_HOUSES][hInfo];

new h;

while (h < sizeof(HouseInfo))

{

new randvir = 2 + random(1999999);

new Float:x, Float:y, Float:z;

new Float:a;

GetPlayerPos(playerid,x,y,z);

HouseInfo[h][hX] = x;

HouseInfo[h][hY] = y;

HouseInfo[h][hZ] = z;

HouseInfo[h][hA] = a;

HouseInfo[h][hDes] = name;

HouseInfo[h][hPrice] = price;

HouseInfo[h][hWorld] = randvir;

HouseInfo[h][hRent] = 0;

HouseInfo[h][hOwner] = 0;

HouseInfo[h][hOwned] = 0;

SaveHouses(h);

h++;

return 1;

}

Featured Replies

Dit is te weinig code om te zien wat het probleem is. ook is de informatie daarmate gebrekkig. gebruik volgende keer

[ code ][/ code ]

zonder spaties

om daar je script in te zetten.

Edited by Crusher!!

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.