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.

YSI Race

Hi daar,

Ik ben afgelopen week begonnen met het gebruiken van YSI. Nu wil ik graag een race maken met YSI, maar het wil niet echt lukken.

Dit staat bovenaan mijn script (gamemode)

#define YSI_NO_USERS

#define YSI_NO_TEXT
#define YSI_NO_COMMANDS
#define YSI_NO_SYSTEM
#define YSI_NO_TRACKING
#define YSI_NO_CALLBACKS
#define YSI_NO_MASTER
#define YSI_NO_CLASSES
#define YSI_NO_PICKUPS
#define YSI_NO_STANDARD
#define YSI_NO_MODULES
#define YSI_NO_OBJECTS
//#define YSI_NO_RACES
//#define YSI_NO_CHECKPOINTS
//#define YSI_NO_AREAS
#define YSI_NO_GROUPS
//#define YSI_NO_PROPERTIES
//#define YSI_NO_ZONES

//#define MAX_DYN_OBJECTS 1010000

#include <YSI>

new testrace = Race_Create();

Dan op GameModeInit:

// - Races
   // -- Testrace
   // --- Startplaatsen
   Race_AddStart(testrace, -2009.4802,214.0650,27.1113,358.5300);
Race_AddStart(testrace, -2009.2758,221.9417,27.3522,358.5041);
// --- Checkpoints
Race_AddCheckpoint(testrace, -2007.0338,232.8069,28.0861);
Race_AddCheckpoint(testrace, -2004.6323,315.9106,34.5502);
Race_AddCheckpoint(testrace, -2146.6467,318.0677,34.7417);
Race_AddCheckpoint(testrace, -2154.4802,110.8494,34.7189);
Race_AddCheckpoint(testrace, -2009.5391,108.4827,27.1099);
// --- Variabelen
Race_SetFixedWin(testrace, 1);
Race_SetArial(testrace, 0);
Race_SetCountdown(testrace, 5);
Race_SetInterior(testrace, 0);
Race_SetWorld(testrace, 0);
Race_SetPrize(testrace, 0, 1000);
Race_SetPrize(testrace, 1, 500);
Race_SetExitTime(testrace, 1000);
Race_SetLaps(testrace, 2);
Race_SetEntry(testrace, 0);

En dan heb ik ook nog twee commands mbt de race:

if(strcmp(cmdtext, "/testrace", true) == 0)
{
	if(Race_IsActive(testrace))
		{
 			GameTextForPlayer(playerid, "~w~Race already started...", 5000, 3);
		}
	else
	    {
		Race_PlayerJoin(playerid, testrace);
		}
	return 1;
}
if(strcmp(cmdtext, "/start", true) == 0)
{
    Race_Start(testrace);
	return 1;
}

Maar, zodra ik dit gehele zooitje wil Compilen, crasht PAWNO xD

Dus: heeft iemand hier verstand van en kan diegene mij helpen?

Of: heeft iemand een goed werkend voorbeeld, waarmee ik mezelf kan helpen?

Bedankt alvast!

Lodewijk / Supermonkey

Featured Replies

Ik gebruik ook YSI maar YSI gebruik ik gewoon als FS :7 Mischien zou jij dat ook eens moeten proberen en niet alles overplaatsen naar je GM ^_^

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.