Jump to content
  • 0

pomoc Help s kodem :/


Paulee

Dotaz

Zdravím,

Asi rok jsem nebyl na pawnu a říkal jsem si že bych mohl začít pawnovat. Stáhl jsem si pawno a dal tam svůj vlastní kod. Ale když jsem chtěl dát compile tak mi to napsalo Error 

C:\Documents and Settings\petr\Desktop\doplnky.pwn(7) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\petr\Desktop\doplnky.pwn(12) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\petr\Desktop\doplnky.pwn(17) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\petr\Desktop\doplnky.pwn(27) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse") 

A minulý rok mi to ještě šlo...

Tak vás prosím o pomoc.

Zde je kód:

#include <a_samp>
#define COLOR_RED 0xFF0000FF
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/doplnky", cmdtext, true, 40) == 0)
    {
   		ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{ff0000}Doplnky By {47FF00}Petr2000","{47FF00}HP{ff0000}(1000$)\n{47FF00}Armour{ff0000}(1000$)\n{47FF00}Kit1{ff0000}(10000$)\n{47FF00}Kit2{ff0000}(100000$)\n{47FF00}Odebrat Zbraně{ff0000}(ZDARMA)","Zvolit","Zavřít");
        return 1;
	}
	if (strcmp("/credits", cmdtext, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid, 101, DIALOG_STYLE_MSGBOX, "{ff0000}Něco o {47FF00}Módu","{FF0000}Script {FFFFFF}vytvořil {00FF07}Petr2000\n{FF0000}Verze Módu:{00FF07} 1.0\nRozhodně se bude tento Script vyvíjet{FF0000} Dál","Zvolit","Zavřít");
		return 1;
	}
	if (strcmp("/dhelp", cmdtext, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid, 101, DIALOG_STYLE_MSGBOX, "{ff0000}Doplnky By {47FF00}Petr2000","{FF0000}/credits{FFFFFF} = {00FF07}Něco o Módu\n{FF0000}/doplnky{FFFFFF} = {00FF07}Tabulka s doplňkama","Zvolit","Zavřít");
		return 1;
	}
	return 0;
}
public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Na serveru se nacházejí Doplnky By {00FF07}Petr2000!{FFFFFF} Příkaz {ff0000}/dhelp");
	return 1;
}
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
    switch (dialogid)
    {
        case 100:
		{
	    if (response)
            {
                switch (listitem)
                {
				case 0: SetPlayerHealth(playerid, 100), SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Doplnil sis HP!{47FF00}(-1000$)"), GivePlayerMoney(playerid, -1000);
				case 1: SetPlayerArmour(playerid, 100), SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Doplnil sis Armour!{47FF00}(-1000$)"), GivePlayerMoney(playerid, -1000);
				case 2: GivePlayerWeapon(playerid, 26, 9999), GivePlayerWeapon(playerid, 31, 9999), GivePlayerWeapon(playerid, 35, 5), SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Koupil sis Kit1!{47FF00}(-10000$)"), GivePlayerMoney(playerid, -10000);
				case 3: GivePlayerWeapon(playerid, 35, 9999), SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Koupil sis Kit2!{47FF00}(-100000$)"), GivePlayerMoney(playerid, -100000), GivePlayerWeapon(playerid, 30, 9999), GivePlayerWeapon(playerid, 31, 9999), GivePlayerWeapon(playerid, 26, 9999);
				case 4: ResetPlayerWeapons(playerid), SendClientMessage(playerid, COLOR_RED, "[ ! ]{FFFFFF}Odebral sis Zbraně!{47FF00}(ZDARMA)");
                }
            }
        }
    }
	return true;
}
public OnFilterScriptInit()
{
	print("\n-------------------------------");
	print(" Doplnky By Petr2000 Je nacteny!!");
	print("-------------------------------\n");
	return 1;
}
Edited by Petr2000
Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

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...