Jump to content

Question

Posted

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]

560x95_F01616_1625F2_030303_000000.png

7 answers to this question

Recommended Posts

Posted

Daca fs il modific asa:

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

new MyPickup;

#include <a_samp>

#if defined FILTERSCRIPT

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]

Imi da asta:

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 213: tag mismatch

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(38) : warning 215: expression has no effect

C:\Documents and Settings\SkyNet\Desktop\Dialog.pwn(68) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

9 Warnings.

560x95_F01616_1625F2_030303_000000.png
Posted

daca vrei sa fie filescript faci asa

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

#include <a_samp>

new MyPickup;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

print("\n--------------------------------------");

print("_________Filterscript by SkyNet_________");

print("--------------------------------------\n");

MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);

return 1;

}

public OnFilterScriptExit()

{

return 1;

}

#endif

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]

Posted

Nu merge imi da:

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(28) : error 025: function heading differs from prototype

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(28) : error 029: invalid expression, assumed zero

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(30) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(32) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(34) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(37) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(39) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(42) : error 010: invalid function or declaration

C:\Documents and Settings\SkyNet\Desktop\Pickup.pwn(46) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

9 Errors.

560x95_F01616_1625F2_030303_000000.png
Posted

mai incearca odata ca am dat edit

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

#include <a_samp>

new MyPickup;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

print("\n--------------------------------------");

print("_________Filterscript by SkyNet_________");

print("--------------------------------------\n");

MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);

return 1;

}

public OnFilterScriptExit()

{

return 1;

}

#endif

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]

Posted

[pawn]MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);[/pawn]

inloc de asta pune asta:

[pawn]MyPickup = CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 0);[/pawn]

daca te uitai pe wiki vedeai cum se foloseste functia CreatePickup

[pawn]CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);[/pawn]

http://wiki.sa-mp.com/wiki/CreatePickup

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.