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.

Probleempje met pickups.

Hey gtagames!

Ik heb een klein probleempje met m'n OnPlayerPickUpPickup kopje

namelijk

\samp\gamemodes\sftdm.pwn(747) : error 030: compound statement not closed at the end of file (started at line 733)

hier is m'n hele kopje Pickups

//------------------------------------------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)

{

if(pickupid == pickup) {

GivePlayerWeapon(playerid, 355, 150);

SendClientMessage(playerid, COLOR_GREEN, "You have found an bloodied AK-47, The blood made you slip, Owned.");

SetPlayerHealth(playerid, 50.0);

return 1;

}

{

if(pickupid == pickup2) {

SetPlayerPos(playerid, 2324.33, -1144.79,1050.71);

SetPlayerInterior(playerid, 12);

return 1;

}

{

if(pickupid == pickup3) {

SendClientMessageToAll(COLOR_RED, "The Satelite near adminhouse has been blowed up!");

SendClientMessageToAll(COLOR_YELLOW, "Workers are busy fixing it, Others are blastin' fools");

CreateExplosion(-2506.3010,-693.9796,279.7314, 4, 300);

return 1;

}

}

//------------------------------------------------------------------------------

Ik heb een tijdje niet meer gescript dus het zal wel een noob foutje zijn maartog :puh:

:ch:

:muur:

Bij voorbaat dank

RabbitB

Featured Replies

Hoi, ik weet het niet zeker maar hebben de haakjes in regel 11 en 17 er niks mee te maken? en dat de code zoals hieronder uit zou moeten zien?

//------------------------------------------------------------------------------
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup) {
GivePlayerWeapon(playerid, 355, 150);
SendClientMessage(playerid, COLOR_GREEN, "You have found an bloodied AK-47, The blood made you slip, Owned.");
SetPlayerHealth(playerid, 50.0);
return 1;
}
if(pickupid == pickup2) {
SetPlayerPos(playerid, 2324.33, -1144.79,1050.71);
SetPlayerInterior(playerid, 12);
return 1;
}
if(pickupid == pickup3) {
SendClientMessageToAll(COLOR_RED, "The Satelite near adminhouse has been blowed up!");
SendClientMessageToAll(COLOR_YELLOW, "Workers are busy fixing it, Others are blastin' fools");
CreateExplosion(-2506.3010,-693.9796,279.7314, 4, 300);
return 1;
}
}
//------------------------------------------------------------------------------

Gr. Kayle

  • Author

Ja dankje dat fix't het al gedeeltelijk

Maar ik krijg nu wel een warning

samp\gamemodes\sftdm.pwn(743) : warning 209: function "OnPlayerPickUpPickup" should return a value

Alvast bedankt

RabbitB :duh:

Edited by RabbitB

  • Author

Uhm Ik heb nu weer een nieuw Probleempjuh met m'n pickups.

Hij doet niet precies wat ik wil

Ik wil namelijk dat als je een pickup oppakt, de volgende verschijnt (( Om Ottos Autos Op te blazen voor een RPG server :puh: ))

Maar goed, hij doet het niet precies goed, Heb Kayle's techniek toegepast, maar brengt nu niewe fouten

Het gaat om the dikgedrukte delen

//------------------------------------------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)

{

if(pickupid == pickup) {

GivePlayerWeapon(playerid, 355, 150);

SendClientMessage(playerid, COLOR_GREEN, "You have found an bloodied AK-47, The blood made you slip, Owned.");

SetPlayerHealth(playerid, 50.0);

return 1;

}

if(pickupid == pickup2) {

SetPlayerPos(playerid, 2324.33, -1144.79,1050.71);

SetPlayerInterior(playerid, 12);

return 1;

}

if(pickupid == M1Start) {

SendClientMessage(playerid, COLOR_YELLOW, "You enter the pub and hear someone shouting your name.");

SendClientMessage(playerid, COLOR_RED, "Fixer: Lets Keep it short, I want you to bomb Otto's autos, The bombs are placed infront of the dealer");

M1st = CreatePickup(1313, 3, -1640.1226,1202.9473,7.2342);

return 1;

}

if(pickupid == M1st) {

SendClientMessage(playerid, COLOR_YELLOW, "You have picked up some bombs, Go inside");

m1p1 = CreatePickup(1313, 3, -1657.2209,1221.6830,13.6719);

return 1;

}

if(pickupid == m1p1) {

m1p2 = CreatePickup(1313, 3,-1669.0729,1211.9907,13.6719);

return 1;

}

if(pickupid == m1p2) {

m1p3 = CreatePickup(1313, 3,-1657.2643,1210.2029,21.1563);

return 1;

}

if(pickupid == m1p3) {

m1p4 = CreatePickup(1313, 3,-1613.4955,1230.0406,7.0468);

return 1;

}

if(pickupid == m1p4) {

GivePlayerMoney(playerid, 50000);

SendClientMessage(playerid, COLOR_WHITE, "You've completed mission 1, Heres your cash");

CreateExplosion(-1669.0729,1211.9907,13.6719, 7,300);

CreateExplosion(-1657.2643,1210.2029,21.1563,3,300);

CreateExplosion(-1613.4955,1230.0406,7.0468,3,300);

return 1;

}

return 0;

}

//------------------------------------------------------------------------------

Ik hoop dat iemand dit scriptje foutloos kan fixen, Aangezien ik de kracht erniet meer voor heb, en m'n koffie op is :duh:

Bij Voorbaat dank.

RabbitB

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.