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.

unable to compile

Hallo,

Zoals de titel al zegt, krijg ik de melding, "unable to compile",

ik heb al wat geprobeerd, met return 1, en 0, { } enz, maar ik kom er niet uit.

iemand de oplossing?

gr steve,........

C:\PROGRA~1\ROCKST~1\GTASAN~1\TESTSE~1\ORIGIN~1\samp\GAMEMO~1\MIJNSC~1.PWN(324) : warning 217: loose indentation

C:\PROGRA~1\ROCKST~1\GTASAN~1\TESTSE~1\ORIGIN~1\samp\GAMEMO~1\MIJNSC~1.PWN(330) : error 030: compound statement not closed at the end of file (started at line 195)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Edited by steve6972

Featured Replies

Wat staat er op rule 324?

En wat op rule 330?

  • Author

Hoi,..

regel 324,.. return 0

regel 330,.. bestaat niet, 329 is de laatste,

De error heb ik weggekregen, een { teveel,

de warning staat er nog wel,

gr steve

C:\PROGRA~1\ROCKST~1\GTASAN~1\TESTSE~1\ORIGIN~1\samp\GAMEMO~1\MIJNSC~1.PWN(324) : warning 217: loose indentation

Loose indentation betekend dat je script niet goed uitgelijnd is.

Voorbeeld van verkeerde uitlijning:

 if(strcmp(cmdtext, "/uitlijning", true)==0
{
  if(IsPlayerAdmin(playerid))
	{
 SetPlayerPos(playerid, 1, 2, 3);
SetPlayerFacingAngle(playerid, 4);
 }
 else
   {
SendClientMessage(playerid, 0xFF0000AA, "Je moet admin zijn");
		}
return 1;
 }

Voorbeeld van goede uitlijning:

if(strcmp(cmdtext, "/uitlijning", true)==0
{
if(IsPlayerAdmin(playerid))
{
	SetPlayerPos(playerid, 1, 2, 3);
	SetPlayerFacingAngle(playerid, 4);
}
else
{
	SendClientMessage(playerid, 0xFF0000AA, "Je moet admin zijn");
}
return 1;
}

Je moet na elke { een 'tab' (of 4 spaties) vooruit inspringen

En elke } moet weer een tab of 4 spaties terug.

Ook als je maar 1 regel 1 spatie verkeerd hebt staan, krijg je al die warning.

Dus waarscheinlijk staat regel 324 bij jou, niet goed uitgelijnd.

  • Author

perfect, die regel moest inderdaad 4 spaties terug,

dank je wel,...

gr steve

Edited by steve6972

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.