- 0
Pickup problem
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Pinki95
Imi da aceste erori:
C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : error 017: undefined symbol "MyPickup"
C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 215: expression has no effect
C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(64) : error 017: undefined symbol "MyPickup"
C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(68) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
La acest FS(vreau ca atunci cand intra in pickup sa ii apara dialogul):
[pawn]// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new MyPickup;
new dialog1;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("_________Filterscript by SkyNet_________");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print("_________Gamemode by SkyNet_________");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSpecialAction(playerid, 20);
return 1;
}
if(listitem == 1)
{
SetPlayerSpecialAction(playerid, 21);
return 1;
}
}
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MyPickup)
{
ShowPlayerDialog(playerid, 1, 2, "dialog1", "1. Bere\n2. Tigari", "Ok!", "N-am bani");
}
return 1;
}[/pawn]
7 answers to this question
Recommended Posts