Jump to content

Question

Posted

Nick:Johnny

Problema:Pai am dat de un /buyvip pe ore si cand pun la public OnDialogResponse numa erori imi da :|

Erori / warnings: [pawn]

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(502) : error 017: undefined symbol "UpdateConfig"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(503) : error 017: undefined symbol "ReadTextDraws"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(522) : error 017: undefined symbol "ShowConfigInConsole"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(547) : error 004: function "SaveTeleport" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(656) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(671) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(691) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(743) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(761) : error 017: undefined symbol "SavePlayerStats"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1027) : error 004: function "MessageToPlayerVIP" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1028) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1038) : error 004: function "MessageToAdmins" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1040) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1069) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1125) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1166) : error 017: undefined symbol "AdvertisementCheck"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1179) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1226) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1247) : error 004: function "SaveIn" is not implemented

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "BuyVip"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "Cancel"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

23 Errors.

[/pawn]

Lini/script:

Daca scot asta.

[pawn]

//==============================================================================

if (dialogid == BuyVip)

{

if(response)

{

if(listitem == 0)

{

if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul :P

{

AccInfo[playerid][pVip] = 1; //Levelul la VIP

AccInfo[playerid][hours] -= 20;

}

else

{

SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule

}

}

if(listitem == 1)

{

if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP

{

AccInfo[playerid][pVip] = 2; //Levelul de VIP

AccInfo[playerid][hours] -= 40;

}

else

{

SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente

}

}

if (listitem ==  2)

{

if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP

{

AccInfo[playerid][pVip] = 3; //Levelul VIP

AccInfo[playerid][hours] = 60;

}

else

{

SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore

}

}

}

[/pawn] nu mai am erori .

Si asta-i comanda.

[pawn]

dcmd_buyvip(playerid,params[]) //Adaugati oriunde in GameMode :P

{

#pragma unused params

ShowPlayerDialog(playerid, BuyVip, DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}Level 1 {FFAF00} --> {FF0000} 20 Ore\n{FFFFFF}Level 2 {FFAF00} --> {FF0000} 40 Ore\n{FFFFFF}Level 3 {FFAF00} --> {FF0000}60 Ore","Select","Cancel);

return 1;

}

[/pawn]

Ai incercat sa rezolvi singur ?: nu stiu ce naiba sai fac..

Sunt un retardat

4 answers to this question

Recommended Posts

Posted

Incearca asa:

//==============================================================================
if (dialogid == BuyVip)
{
	if(response)
	{
		if(listitem == 0)
		{
			if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul 
			{
				AccInfo[playerid][pVip] = 1; //Levelul la VIP
				AccInfo[playerid][hours] -= 20;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
		}
		if(listitem == 1)
		{
			if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 2; //Levelul de VIP
				AccInfo[playerid][hours] -= 40;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
		}
		if (listitem ==  2)
		{
			if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 3; //Levelul VIP
				AccInfo[playerid][hours] = 60;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
  		}
	}
	return 1;
}
//==============================================================================

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

NexT." post="161290" timestamp="1399453055"]

Incearca asa:

//==============================================================================
if (dialogid == BuyVip)
{
	if(response)
	{
		if(listitem == 0)
		{
			if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul 
			{
				AccInfo[playerid][pVip] = 1; //Levelul la VIP
				AccInfo[playerid][hours] -= 20;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
		}
		if(listitem == 1)
		{
			if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 2; //Levelul de VIP
				AccInfo[playerid][hours] -= 40;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
		}
		if (listitem ==  2)
		{
			if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 3; //Levelul VIP
				AccInfo[playerid][hours] = 60;
			}
			else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
  		}
	}
	return 1;
}
//==============================================================================

[pawn]

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8763) : error 017: undefined symbol "BuyVip"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8769) : error 001: expected token: "*then", but found ")"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8769) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8774) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8774) : error 017: undefined symbol "SendClienMessage"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8778) : error 001: expected token: "*then", but found ")"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8778) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8783) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8783) : error 017: undefined symbol "SendClienMessage"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8787) : error 001: expected token: "*then", but found ")"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8787) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8792) : error 029: invalid expression, assumed zero

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8792) : error 017: undefined symbol "SendClienMessage"

D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(12427) : warning 203: symbol is never used: "dcmd_buyvip"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

13 Errors.

[/pawn]

Acu imi da mai putine erori ?

Sunt un retardat

Posted

//==============================================================================
if (dialogid == BuyVip)
{
	if(response)
	{
		if(listitem == 0)
		{
			if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul 
			{
				AccInfo[playerid][pVip] = 1; //Levelul la VIP
				AccInfo[playerid][hours] -= 20;
			}
			else
			{
				SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
			}
		}
		if(listitem == 1)
		{
			if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 2; //Levelul de VIP
				AccInfo[playerid][hours] -= 40;
			}
			else
			{
				SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
			}
		}
		if (listitem ==  2)
		{
			if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP
			{
				AccInfo[playerid][pVip] = 3; //Levelul VIP
				AccInfo[playerid][hours] = 60;
			}
			else
			{
				SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
			}

		}
	}
}
sus la unde ai tu define-urile pune
#define BuyVip 9128423 //inloc de numarul care l-am pus eu poti pune orice numar numai sa nu se incurce cu alte dialoguri
si la OnPlayerCommandText adauga
dcmd(buyvip, 6, cmdtext);

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.