- 0
Problema dialog cand il bag in gamemode
-
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
Tuduce
if(dialogid == DIALOG_HSHOP)
{
if(response)
{
if(listitem == 0)
{
new string1[MAX_STRING],string2[MAX_STRING],string3[MAX_STRING],string4[MAX_STRING],string5[2400];
format(string1, sizeof(string1), "Doar jucatorii cu rank Hero pot folosi acest shop.");
format(string2, sizeof(string2), "Punctele se obtin la fiecare payday.");
format(string3, sizeof(string3), "La fiecare payday se primeste 1 hero point.");
format(string4, sizeof(string4), "Cu mai multe hero points iti poti cumpara diferite chestii din /heroshop.");
format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2, string3, string4);
ShowPlayerDialog(playerid, DIALOG_HSHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", "");
}
if(listitem == 1)
{
if(PlayerInfo[playerid][pPHero] <= 14) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPHero] -= 15;
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
GivePlayerCash(playerid, 5000000);
Update(playerid, pCashx);
SendClientMessage(playerid, COLOR_YELLOW, "You bought $5,000,000 using 15 hero points.");
}
if(listitem == 2)
{
if(PlayerInfo[playerid][pPHero] <= 4) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPHero] -= 5;
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
PlayerInfo[playerid][pRP] ++;
Update(playerid, pRPx);
}
if(listitem == 3)
{
if(PlayerInfo[playerid][pPHero] <= 24) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPHero] -= 25;
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
GivePlayerCash(playerid, 10000000);
Update(playerid, pCashx);
SendClientMessage(playerid, COLOR_YELLOW, "You bought $10,000,000 using 25 hero points.");
}
if(listitem == 4)
{
if(PlayerInfo[playerid][pPHero] <= 49) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPHero] -= 50;
new rpp = random(3), randompoints = 3 + random(60);
PlayerInfo[playerid][pPremiumPoints] += rpp;
Update(playerid, pPremiumPointsx);
SendClientMessage(playerid, COLOR_YELLOW, "You bought random premium points(using hero points) and you got %d. Congratulations!",rpp);
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
}
if(listitem == 5)
{
if(PlayerInfo[playerid][pPremiumPoints] <= 24) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPremiumPoints] -= 25;
PlayerInfo[playerid][pLevel] ++;
Update(playerid, pLevelx);
SendClientMessage(playerid, COLOR_YELLOW, "You bought a level up using 25 hero points.");
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
}
if(listitem == 6)
{
if(PlayerInfo[playerid][pPHero] <= 44) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
PlayerInfo[playerid][pPHero] -= 45;
PlayerInfo[playerid][pHiddenColor] += 1;
Update(playerid, pHiddenColorx);
SendClientMessage(playerid, COLOR_YELLOW, "You have bought a hidden color using your hero points.");
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
}
if(listitem == 8)
{
if(PlayerInfo[playerid][pPremiumPoints] <= 49) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough hero points to do this.", "Close", "");
if(PlayerInfo[playerid][pFACWarns] == 0) return SCM(playerid, -1, "Nu detii nici un Faction Warn.");
{
PlayerInfo[playerid][pPHero] -= 50;
PlayerInfo[playerid][pFACWarns] == 0;
Update(playerid, pFACWarnsx);
SendClientMessage(playerid, COLOR_YELLOW, "You bought clear FWs using your hero points.");
new var[256];
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `phero`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHero], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
}
}
IAR CAND IL BAG IN GAMEMODE, SUB DIALOG_shop IMI APAR 26 DE ERORI, DAR STRANIU PENTRU CA, DUPA CE IL SCOT MERGE TOT PERFECT..ERORILE SUNT ASTEA:
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(79) : error 017: undefined symbol "AntiDeAMX"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(3882) : error 004: function "vUpdate" is not implemented
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(4097) : error 017: undefined symbol "GetPlayerHealthEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(4102) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(4106) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(4534) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(5570) : error 017: undefined symbol "GetPlayerHealthEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(6247) : warning 213: tag mismatch
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(6247) : warning 213: tag mismatch
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(6265) : error 017: undefined symbol "NumIp"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(6973) : error 017: undefined symbol "ClearWanted"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7286) : error 017: undefined symbol "SetPlayerArmourEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7530) : error 017: undefined symbol "AddRaportPoint"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7574) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7588) : error 017: undefined symbol "SetPlayerArmourEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7633) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7657) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7682) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7707) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7732) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7780) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7799) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7810) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7826) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7836) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7845) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7853) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\One\Desktop\Scripting files\UNITY TEST\gamemodes\unity.pwn(7866) : error 017: undefined symbol "SetPlayerPosEx"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
1 answer to this question
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 accountSign in
Already have an account? Sign in here.
Sign In Now