Jump to content
  • 0

Adaugare masini pe mapa


The_Gun

Question

9 answers to this question

Recommended Posts

Am facut ca acolo,dar cand vreau sa-l compilez imi da o eroare

C:\Users\User\Desktop\guninfo.pwn(5) : error 010: invalid function or declaration
C:\Users\User\Desktop\guninfo.pwn(13) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Acesta este filtrescriptul

[pawn]#include <a_samp>

new guninfo;

guninfo = CreatePickup(1239, 23, 322.422790,-1189.406005,76.352348);

public OnPlayerPickUpPickup(playerid, pickupid)

{

  if (pickupid == guninfo)

  {

      GameTextForPlayer(playerid, "Text", 5000, 3);//

    }

    return 1;

}[/pawn]

pstgta.png
Link to comment
Share on other sites

guninfo = CreatePickup(1239, 23, 322.422790,-1189.406005,76.352348);
trebuie pus la OnFilterScriptInit, schimba tot acel cod in asta:
#include <a_samp>

new guninfo;

public OnFilterScriptInit( )
{
	guninfo = CreatePickup( 1239, 23, 322.422790, -1189.406005, 76.352348 );
}

public OnPlayerPickUpPickup( playerid, pickupid )
{
	if( pickupid == guninfo )
		GameTextForPlayer( playerid, "Text", 5000, 3 );

	return 1;
}

Link to comment
Share on other sites

O ultima intrebare,cum pot face sa apara textul si atunci cand esti intr-o masina si stai pe acel "i",de ex. la asta :

[pawn]#include <a_samp>

new parcls;

public OnFilterScriptInit( )

{

parcls = CreatePickup(1239, 23, 556.179504,-1254.379394,17.069393);

}

public OnPlayerPickUpPickup( playerid, pickupid )

{

if( pickupid == parcls )

GameTextForPlayer( playerid, "~w~Scrie ~r~/opencarls ~w~pentru a deschide usa", 5000, 3 );

return 1;

}[/pawn]

pstgta.png
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.