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.

2 vraagjes

Hey,

Allereerst over de admin levels,

ik heb nu:

#define LEVEL_PLAYER 0
#define LEVEL_TRIALADMIN 1
#define LEVEL_GAMEADMIN 2
#define LEVEL_SENIORADMIN 3
#define LEVEL_LEADADMIN 4
#define LEVEL_OWNER 5
#define LEVEL_SCRIPTER 7

Maar, bij mijn /stats;

format(coordsstring, sizeof(coordsstring), "Level:[%i]Health:[%.1f] Cash:[$%d] ", alevel,health, money);

Oftewel, ik krijg daar een integer maar als ik ''Level:[%s] doe dan krijg ik [] zonder iets erin.

Kan iemand mij daarin helpen?

En, ik krijg in mijn script de normale pick-ups die je in single player ook heb, betreft de gele pijltjes omlaag, deze wil ik weg zodat ik mijn eigen dingetjes neer kan plaatsen, is hier een filterscript/inc of w/e voor?

// alvast bedankt!

Featured Replies

die gele pijltjes zijn makelijk weg te halen met deze code onder ongamemodeinit:

public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}

en nog iets, waarom heb je %.1f als een float, dat moet volgens mij zijn %f

Edited by JoshTheBoss

Die %.1f zorgt ervoor dat bijvoorbeedl dit: 70.8956 er zo uit komt te zien: 70.9. Om je adminlevels te tonen:

new atext[32];
new a = PlayerInfo[playerid][pAdmin]; // of wat je ook gebruikt voor admin variabele

switch(a)
{
case 0: { atext = "Player"; }
case 1: { atext = "Trial Admin"; }
case 2: { atext = "Game Admin"; }
case 3: { atext = "Senior Admin"; }
case 4: { atext = "Lead Admin"; }
case 5: { atext = "Owner"; }
case 6: { atext = "Scripter"; }
default: { atext = "Player"; }
}

format(coordsstring, sizeof(coordsstring), "Level:[%s]Health:[%.1f] Cash:[$%d] ", atext,health, money);

  • Author

Ah, volgens mij werkt het maar nu wil ik mijn script iéts geavanceerder (ofzo) maken, doormiddel van enum's;

Nu heb ik dit:

enum PLAYERINFORMATION
{
money[MAX_PLAYERS],
jailed[MAX_PLAYERS],
alevel[MAX_PLAYERS],
IsDeath[MAX_PLAYERS];
};
new PlayerInfo[MAX_PLAYERS][PLAYERINFORMATION];

Maar nu zegt hij bij OnPlayerDisconnect, code:

 
lijn: 153	dini_BoolSet(udb_encode(playername), "Death:", IsDeath[playerid]);
lijn 155	money[playerid] = GetPlayerMoney(playerid);
lijn 157	dini_IntSet(udb_encode(playername), "money", money[playerid]);
lijn 159	dini_Set(udb_encode(playername), "alevel", alevel[playerid]);

De volgende errors:

project23.pwn(50) : error 001: expected token: "}", but found ";"
project23.pwn(51) : error 010: invalid function or declaration
project23.pwn(153) : error 028: invalid subscript (not an array or too many subscripts): "IsDeath"
project23.pwn(153) : warning 215: expression has no effect
project23.pwn(153) : error 001: expected token: ";", but found "]"
project23.pwn(153) : error 029: invalid expression, assumed zero
project23.pwn(153) : fatal error 107: too many error messages on one line

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.