- 0
Bug-uri care am nevoie rezolvate imediat
-
Similar Content
-
- 1 reply
- 372 views
-
- 1 answer
- 296 views
-
- 0 answers
- 336 views
-
- 0 replies
- 311 views
-
- 0 replies
- 415 views
-
-
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
Narkis108
Salutare, am un bug la clan, cand pun clantag-ul si dau relog imi dispare tag-ul
Acesta este codul.
if(dialogid == DIALOG_CLAN_TAG) { if(!response) { ShowPlayerDialog(playerid, DIALOG_CLAN, DIALOG_STYLE_LIST, "Clan", "Clan Help\nClan Members\nClan Settings\nClan Tag\nClan Safebox\nClan Vehicles", "Select", "Close"); } else { if(PlayerInfo[playerid][pClan] >= 1) { new szName[25],str111[256],str222[256],str333[256],strings[128]; switch(listitem) { case 0: { format(szName, sizeof(szName), "%s", PlayerInfo[playerid][pNormalName]); SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]); PlayerInfo[playerid][pClanTag] = 0; mysql_format(SQL, str111, sizeof(str111), "UPDATE users SET `ClanTag`='0' WHERE `name`='%s'", PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str111,"",""); } case 1: { format(szName, sizeof(szName), "%s%s", ClanInfo[PlayerInfo[playerid][pClan]][cClanTag], PlayerInfo[playerid][pNormalName]); SetPlayerName(playerid, szName); PlayerInfo[playerid][pClanTag] = 1; mysql_format(SQL,str222, sizeof(str222), "UPDATE users SET `ClanTag`='1' WHERE `name`='%s'", PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str222,"",""); } case 2: { format(szName, sizeof(szName), "%s%s", PlayerInfo[playerid][pNormalName], ClanInfo[PlayerInfo[playerid][pClan]][cClanTag]); SetPlayerName(playerid, szName); PlayerInfo[playerid][pClanTag] = 2; mysql_format(SQL,str333, sizeof(str333), "UPDATE users SET `ClanTag`='2' WHERE `name`='%s'", PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str333,"",""); } } format(strings,sizeof(strings),"Your nickname is now: %s",szName); SendClientMessage(playerid, COLOR_GENANNOUNCE, strings); } else { hidePlayerDialog(playerid); } } }
YouTube: Click
Discord: 80 ON MY WRIST#9201
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.