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.

Propertie verdiensten

Ik heb een propertie script, en als ik een propertie koop gaat het goed, maar ik krijg de verdiensten van de properties niet :s hoe komt dit?

Featured Replies

Ik heb een propertie script, en als ik een propertie koop gaat het goed, maar ik krijg de verdiensten van de properties niet :s hoe komt dit?

kan je dat script niet posten? zo kan ik moeilijk zien waar de fout zit :N

  • Author

Script is te groot om hier te posten :N

Edited by quincy225

www.pastebin.com

Wij kunnen ook niet vanaf achter onze computer ruiken waar in jouw script de fout zit.

We zijn niet helderziend ^_^

(Ik tenminste niet :{ )

Edited by =>Sandra<=

Die array's zijn leuk, maar daar zit de fout niet in,

Het probleem zal waarscheinlijk in de public-functie zitten.

Stijgt de waarde van je property ook niet?

Want bij Nitro's freeroam krijg je niet elke minuut geld, maar stijgt (of daalt) de waarde van je property elke minuut.

  • Author

Ik zal over 1 uurtje kijken want moet namelijk ff weg maar dan zie je antwoord van mij wel verschijnen :)

  • Author

Ik heb probleem gevonden alleen ik krijg de volgende errors:

 error 033: array must be indexed (variable "propertyOwner")
error 033: array must be indexed (variable "propertyOwner")
error 006: must be assigned to an array
error 017: undefined symbol "GiveMoney"

In het volgende stukje script

public PropertyScoreUpdate()
{
new owners[MAX_PROPERTIES];
new payments[MAX_PROPERTIES];
for(new i=0; i < MAX_PROPERTIES; i++)
	owners[i]=999;
for(new i=0; i < MAX_PROPERTIES; i++)
{
	if(propertyOwner[i] < 999) {
		for(new j=0; j < MAX_PROPERTIES; j++) {
			if(owners[j]==propertyOwner[i]) {
				payments[j]+=propertyEarnings[i];
				j = MAX_PROPERTIES;
			} else if (owners[j]==999) {
				owners[j]=propertyOwner[i];
				payments[j]+=propertyEarnings[i];
				j = MAX_PROPERTIES;
			}
		}

	}
}
for(new i=0; i < MAX_PROPERTIES; i++) {
	if(owners[i] < 999 && IsPlayerConnected(owners[i])) {
		new string[256];
		format(string, sizeof(string), "* You earned $%d from your properties.", payments[i]);
		SendClientMessage(owners[i], COLOR_GREEN, string);
  			GiveMoney(i,payments[i]);
	}
}
}

Alvast bedankt!

Edited by quincy225

Die laatste error kan ik wel oplossen, denk ik (tenzij anders gedefinieerd in het script):

GivePlayerMoney(playerid, amount);

  • Author

Die error had ik ook al opgelost :puh:

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.