Jump to content
  • 0

pomoc Pickupy


darfexko

Dotaz

Zdravím, nepomohl by někdo prosím?

#include <a_samp>

#if defined FILTERSCRIPT
#else
#endif

#define DIALOG_FARMY 1

new pickup1;
new pickup2;
new pickup3;

public OnGameModeInit()
{
   pickup1 = CreatePickup(1314, 1, -101.6890,16.7901,3.1172, -1);  //BLUEBERRY ACRES
   pickup2 = CreatePickup(1314, 1, -1068.6017,-1211.6177,129.5651, -1); //THEFARM
   pickup3 = CreatePickup(1314, 1,1938.7205,166.2379,37.2813, -1); //REDCOUNTY
   return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup3)
{
  ShowPlayerDialogEx(playerid, DIALOG_FARMY, DIALOG_STYLE_LIST), "{30F209}Koupit{FFFFFF}\nComing Soon\nComing Soon\nComing Soon");
  return 1;
}

 

C:\Users\help\Desktop\Farmy.pwn(25) : error 017: undefined symbol "ShowPlayerDialogEx"
C:\Users\lhelp\Desktop\Farmy.pwn(25) : error 029: invalid expression, assumed zero
C:\Users\lhelp\Desktop\Farmy.pwn(25) : warning 215: expression has no effect
C:\Users\lhelp\Desktop\Farmy.pwn(28) : error 030: compound statement not closed at the end of file (started at line 23)
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
 

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Administrátor

No to ti nepovím. Nějaký který obsahuje tuhle metodu... A nebo odmaž to Ex smaž závorku za DIALOG_STYLE_LIST a přidaj parametr kvůli tlačítku. ( nejsem si jistý jestli ne optional nebo ne )

Link to comment
Share on other sites

  • 0

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup3)
{
   ShowPlayerDialog(playerid, DIALOG_FARMY, DIALOG_STYLE_LIST,"Farmy", "{30F209}Koupit{FFFFFF}\nComing Soon\nComing Soon\nComing Soon","Test"); //25 radek
   return 1;
}
// tady je 28, ale tam nic neni napsany..  :angrytodd:

C:\Users\lhelp\Desktop\Farmy.pwn(25) : warning 202: number of arguments does not match definition
C:\Users\lhelp\Desktop\Farmy.pwn(28) : error 030: compound statement not closed at the end of file (started at line 23)

Link to comment
Share on other sites

  • 0

DIALOG_STYLE_LIST by se měl zavírat dvouma buttonama.  Např: Select a Close

ShowPlayerDialog(playerid, DIALOG_FARMY, DIALOG_STYLE_LIST,"Farmy", "{30F209}Koupit{FFFFFF}\nComing Soon\nComing Soon\nComing Soon","Zvolit","Zavřít"); 

 

Edited by Polis_Polismanovic
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...