SA-MP Forums Archive
[Ajuda] diбlogo de erro - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] diбlogo de erro (/showthread.php?tid=583221)



diбlogo de erro - Jimmi - 26.07.2015

Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12123) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12125) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12145) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12147) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12172) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12174) : error 035: argument type mismatch (argument 1)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(13254) : error 035: argument type mismatch (argument 1)

Eu posso passar esta caixa de diбlogo sobre o r39-3, por favor?
Код:
	if(dialogid == 130)
		{
		    if(!response)
            {
                return 1;
            }
		    switch(listitem)
            {
                case 0:
                {
		            if(PlayerInfo[playerid][pGPPoints] >= 150)
		            {
		                PlayerInfo[playerid][pDonateRank] = 1;
		                PlayerInfo[playerid][pGPPoints] -= 150;
		                format(string, sizeof(string), "UPDATE players SET DonateRank='%d' WHERE id=%d", PlayerInfo[playerid][pDonateRank], PlayerInfo[playerid][pSQLID]);
						mysql_query(string);
		                format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]);
						mysql_query(string);
		                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Cont VIP' in schimbul a 150 {FF8C00}GamePoints{FFFFFF}!");
		                SendClientMessage(playerid, -1, "Tasteaza /desprevip pentru informatii!");
		                return 1;
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 150 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
					}
				}
				case 1:
				{
				    if(PlayerInfo[playerid][pGPPoints] >= 20)
		            {
		                if(PlayerInfo[playerid][pWarns] > 0)
		                {
			                PlayerInfo[playerid][pWarns] = 0;
			                PlayerInfo[playerid][pGPPoints] -= 20;
			                format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]);
							mysql_query(string);
							format(string, sizeof(string), "UPDATE players SET Warnings='%d' WHERE id=%d", PlayerInfo[playerid][pWarns], PlayerInfo[playerid][pSQLID]);
							mysql_query(string);
			                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear Warns' in schimbul a 20 {FF8C00}GamePoints{FFFFFF}!");
			                return 1;
						}
						else
						{
						    SendClientMessage(playerid, -1 ,"Nu ai warn-uri!");
						    return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 20 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
					}
				}
				case 2:
				{
				    if(PlayerInfo[playerid][pGPPoints] >= 40)
		            {
		                if(PlayerInfo[playerid][pPunish] > 0)
		                {
			                PlayerInfo[playerid][pPunish] = 0;
			                PlayerInfo[playerid][pGPPoints] -= 40;
			                format(string, sizeof(string), "UPDATE players SET GamePoints='%d' WHERE id=%d", PlayerInfo[playerid][pGPPoints], PlayerInfo[playerid][pSQLID]);
							mysql_query(string);
							format(string, sizeof(string), "UPDATE players SET Fpunish='%d' WHERE id=%d", PlayerInfo[playerid][pPunish], PlayerInfo[playerid][pSQLID]);
							mysql_query(string);
			                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear FPunish' in schimbul a 40 {FF8C00}GamePoints{FFFFFF}!");
			                return 1;
						}
						else
						{
						    SendClientMessage(playerid, -1 ,"Nu ai FPunish!");
						    return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 40 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
				}
	        }
		}
	}



Re: diбlogo de erro - n0minal - 26.07.2015

https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_query

Faltam parвmetros, estuda mais sobre o plugin, a R5 tem que ser adaptada pra R33+


Re: diбlogo de erro - Jimmi - 26.07.2015

Eu nгo sei o que substituir, eu sou novato


Re: diбlogo de erro - n0minal - 26.07.2015

vai olhando seu compilador e vendo o que vocк tб fazendo de errado...


Re: diбlogo de erro - Jimmi - 26.07.2015

Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12120) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12121) : error 017: undefined symbol "tquery"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12122) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12123) : error 017: undefined symbol "tquery"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12142) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12143) : error 017: undefined symbol "tquery"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12144) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12145) : error 017: undefined symbol "tquery"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12169) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12170) : error 017: undefined symbol "tquery"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12171) : error 017: undefined symbol "MySQL"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12172) : error 017: undefined symbol "tquery"
Entгo eu modifiquei:
Код:
if(dialogid == 130)
		{
		    if(!response)
            {
                return 1;
            }
		    switch(listitem)
            {
                case 0:
                {
		            if(PlayerInfo[playerid][pGPPoints] >= 150)
		            {
		                PlayerInfo[playerid][pDonateRank] = 1;
		                PlayerInfo[playerid][pGPPoints] -= 150;
                  		mysql_tquery(MySQL, "UPDATE players SET DonateRank='%d' WHERE id=%d", "");
		                mysql_tquery(tquery);
		                mysql_tquery(MySQL, "UPDATE players SET GamePoints='%d' WHERE id=%d", "");
               			mysql_tquery(tquery);
		                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Cont VIP' in schimbul a 150 {FF8C00}GamePoints{FFFFFF}!");
		                SendClientMessage(playerid, -1, "Tasteaza /desprevip pentru informatii!");
		                return 1;
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 150 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
					}
				}
				case 1:
				{
				    if(PlayerInfo[playerid][pGPPoints] >= 20)
		            {
		                if(PlayerInfo[playerid][pWarns] > 0)
		                {
			                PlayerInfo[playerid][pWarns] = 0;
			                PlayerInfo[playerid][pGPPoints] -= 20;
			                mysql_tquery(MySQL, "UPDATE players SET GamePoints='%d' WHERE id=%d", "");
			                mysql_tquery(tquery);
			                mysql_tquery(MySQL, "UPDATE players SET Warnings='%d' WHERE id=%d", "");
	               			mysql_tquery(tquery);
			                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear Warns' in schimbul a 20 {FF8C00}GamePoints{FFFFFF}!");
			                return 1;
						}
						else
						{
						    SendClientMessage(playerid, -1 ,"Nu ai warn-uri!");
						    return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 20 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
					}
				}
				case 2:
				{
				    if(PlayerInfo[playerid][pGPPoints] >= 40)
		            {
		                if(PlayerInfo[playerid][pPunish] > 0)
		                {
			                PlayerInfo[playerid][pPunish] = 0;
			                PlayerInfo[playerid][pGPPoints] -= 40;
       						mysql_tquery(MySQL, "UPDATE players SET GamePoints='%d' WHERE id=%d", "");
			                mysql_tquery(tquery);
			                mysql_tquery(MySQL, "UPDATE players SET Fpunish='%d' WHERE id=%d", "");
	               			mysql_tquery(tquery);
			                SendClientMessage(playerid, -1, "Felicitari! Ai achizitionat 'Clear FPunish' in schimbul a 40 {FF8C00}GamePoints{FFFFFF}!");
			                return 1;
						}
						else
						{
						    SendClientMessage(playerid, -1 ,"Nu ai FPunish!");
						    return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, -1, "Nu detii 40 {FF8C00}GamePoints{FFFFFF}!");
						return 1;
				}
	        }
		}
	}