16.10.2016, 10:09
Код:
/includes/functions.pwn(18214) : warning 213: tag mismatch ./includes/functions.pwn(18216) : warning 213: tag mismatch ./includes/functions.pwn(18218) : warning 213: tag mismatch ./includes/functions.pwn(18220) : warning 213: tag mismatch ./includes/functions.pwn(18222) : warning 213: tag mismatch ./includes/functions.pwn(18224) : warning 213: tag mismatch ./includes/functions.pwn(18226) : warning 213: tag mismatch ./includes/functions.pwn(18228) : warning 213: tag mismatch ./includes/functions.pwn(18230) : warning 213: tag mismatch ./includes/functions.pwn(18232) : warning 213: tag mismatch ./includes/functions.pwn(18234) : warning 213: tag mismatch ./includes/functions.pwn(18236) : warning 213: tag mismatch ./includes/functions.pwn(18238) : warning 213: tag mismatch ./includes/callbacks.pwn(1208) : error 033: array must be indexed (variable "Textdraw") ./includes/callbacks.pwn(1210) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1211) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1212) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1213) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1214) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1215) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1216) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1217) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1218) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1219) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1220) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1221) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1222) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1223) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1224) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1225) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1226) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1227) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1228) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1229) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1230) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1231) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1232) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1233) : error 035: argument type mismatch (argument 2) ./includes/callbacks.pwn(1234) : error 035: argument type mismatch (argument 2)
(1)
Код:
format(header, sizeof(header), "Ten:%s", GetPlayerNameEx(targetid)); PlayerTextDrawSetString(playerid, Textdraw[5][playerid],header); format(resultline, sizeof(resultline),"Level:%d", PlayerInfo[targetid][pLevel]); PlayerTextDrawSetString(playerid, Textdraw[8][playerid],resultline); format(resultline, sizeof(resultline),"Gioi Tinh:%s", sext); PlayerTextDrawSetString(playerid, Textdraw[9][playerid],resultline); format(resultline, sizeof(resultline),"Ngay sinh:%s", PlayerInfo[targetid][pBirthDate]); PlayerTextDrawSetString(playerid, Textdraw[10][playerid],resultline); format(resultline, sizeof(resultline),"Ket Hon:%s", PlayerInfo[targetid][pMarriedName]); PlayerTextDrawSetString(playerid, Textdraw[11][playerid],resultline); format(resultline, sizeof(resultline),"Vi Tri:%s (%0.2f, %0.2f, %0.2f)", zone, px, py, pz); PlayerTextDrawSetString(playerid, Textdraw[13][playerid],resultline); format(resultline, sizeof(resultline),"Mau:%.1f", health); PlayerTextDrawSetString(playerid, Textdraw[14][playerid],resultline); format(resultline, sizeof(resultline),"Giap:%.1f", armor); PlayerTextDrawSetString(playerid, Textdraw[15][playerid],resultline); format(resultline, sizeof(resultline),"Gio Da Choi:%s", number_format(PlayerInfo[targetid][pConnectHours])); PlayerTextDrawSetString(playerid, Textdraw[16][playerid],resultline); format(resultline, sizeof(resultline),"Quoc Tich:%s", nation); PlayerTextDrawSetString(playerid, Textdraw[17][playerid],resultline); format(resultline, sizeof(resultline),"Bao Hiem:%s", insur); PlayerTextDrawSetString(playerid, Textdraw[18][playerid],resultline); format(resultline, sizeof(resultline),"Cong Viec:%s", GetJobName(PlayerInfo[targetid][pJob])); PlayerTextDrawSetString(playerid, Textdraw[19][playerid],resultline); format(resultline, sizeof(resultline),"Cong Viec Phu:%s", GetJobName(PlayerInfo[targetid][pJob2])); PlayerTextDrawSetString(playerid, Textdraw[20][playerid],resultline);
Код:
if(clickedid == Textdraw[27]) { TextDrawHideForPlayer(playerid, Textdraw[0]); TextDrawHideForPlayer(playerid, Textdraw[1]); TextDrawHideForPlayer(playerid, Textdraw[2]); TextDrawHideForPlayer(playerid, Textdraw[3]); TextDrawHideForPlayer(playerid, Textdraw[4]); TextDrawHideForPlayer(playerid, Textdraw[5]); TextDrawHideForPlayer(playerid, Textdraw[6]); TextDrawHideForPlayer(playerid, Textdraw[7]); TextDrawHideForPlayer(playerid, Textdraw[8]); TextDrawHideForPlayer(playerid, Textdraw[9]); TextDrawHideForPlayer(playerid, Textdraw[10]); TextDrawHideForPlayer(playerid, Textdraw[11]); TextDrawHideForPlayer(playerid, Textdraw[12]); TextDrawHideForPlayer(playerid, Textdraw[13]); TextDrawHideForPlayer(playerid, Textdraw[14]); TextDrawHideForPlayer(playerid, Textdraw[15]); TextDrawHideForPlayer(playerid, Textdraw[16]); TextDrawHideForPlayer(playerid, Textdraw[17]); TextDrawHideForPlayer(playerid, Textdraw[18]); TextDrawHideForPlayer(playerid, Textdraw[19]); TextDrawHideForPlayer(playerid, Textdraw[20]); TextDrawHideForPlayer(playerid, Textdraw[21]); TextDrawHideForPlayer(playerid, Textdraw[22]); TextDrawHideForPlayer(playerid, Textdraw[23]); TextDrawHideForPlayer(playerid, Textdraw[24]); TextDrawHideForPlayer(playerid, Textdraw[25]); TextDrawHideForPlayer(playerid, Textdraw[26]); TextDrawHideForPlayer(playerid, Textdraw[27]); CancelSelectTextDraw(playerid); }
Код:
stock txtthongtin(playerid,targetid) { if(IsPlayerConnected(targetid)) { new resultline[1024], header[65], org[128], employer[GROUP_MAX_NAME_LEN], rank[GROUP_MAX_RANK_LEN], division[GROUP_MAX_DIV_LEN]; new sext[16], std[20], nation[24], biz[128]; if(PlayerInfo[targetid][pSex] == 1) { sext = "Male"; } else { sext = "Female"; } switch(GetPVarInt(targetid, "STD")) { case 1: std = "Chlamydia"; case 2: std = "Gonorrhea"; case 3: std = "Syphilis"; default: std = "None"; } if(PlayerInfo[targetid][pMember] != INVALID_GROUP_ID) { GetPlayerGroupInfo(targetid, rank, division, employer); format(org, sizeof(org), "Faction: %s (%d)\nRank: %s (%d)\nDivision: %s (%d)\n", employer, PlayerInfo[targetid][pMember], rank, PlayerInfo[targetid][pRank], division, PlayerInfo[targetid][pDivision]); } else if(PlayerInfo[targetid][pFMember] < INVALID_FAMILY_ID) { if(0 <= PlayerInfo[targetid][pDivision] < 5) format(division, sizeof(division), "%s", FamilyDivisionInfo[PlayerInfo[targetid][pFMember]][PlayerInfo[targetid][pDivision]]); else division = "None"; format(org, sizeof(org), "Family: %s (%d)\nRank: %s (%d)\nDivision: %s (%d)\n", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName], PlayerInfo[targetid][pFMember], FamilyRankInfo[PlayerInfo[targetid][pFMember]][PlayerInfo[targetid][pRank]], PlayerInfo[targetid][pRank], division, PlayerInfo[targetid][pDivision]); } else format(org, sizeof(org), ""); if(PlayerInfo[targetid][pBusiness] != INVALID_BUSINESS_ID) format(biz, sizeof(biz), "Business: %s (%d)\nRank: %s (%d)\n", Businesses[PlayerInfo[targetid][pBusiness]][bName], PlayerInfo[targetid][pBusiness], GetBusinessRankName(PlayerInfo[targetid][pBusinessRank]), PlayerInfo[targetid][pBusinessRank]); else format(biz, sizeof(biz), ""); switch(PlayerInfo[targetid][pNation]) { case 0: nation = "San Andreas"; case 1: nation = "Tierra Robada"; } new insur[20]; switch(PlayerInfo[targetid][pInsurance]) { case 1: insur = "County General"; case 2: insur = "All Saints"; case 3: insur = "Montgomery"; case 4: insur = "Fort Carson"; case 5: insur = "San Fierro"; case 6: insur = "Club VIP"; case 7: insur = "Home Care"; case 9: insur = "El Quebrados"; case 10: insur = "SAAS Base Hospital"; case 11: insur = "Las Venturas"; case 12: insur = "Famed Room"; case 13: insur = "DeMorgan"; case 14: insur = "Bayside"; default: insur = "None"; } new staffrank[64]; if(PlayerInfo[targetid][pHelper] > 0 || PlayerInfo[targetid][pAdmin] == 1 || (PlayerInfo[targetid][pAdmin] > 1 && PlayerInfo[playerid][pAdmin] <= PlayerInfo[targetid][pAdmin])) format(staffrank, sizeof(staffrank), "%s", GetStaffRank(targetid)); else staffrank = ""; new drank[64]; if(PlayerInfo[targetid][pDonateRank] > 0) { switch(PlayerInfo[targetid][pDonateRank]) { case 1: drank = "{800080}Bronze VIP{FFFFFF}\n"; case 2: drank = "{800080}Silver VIP{FFFFFF}\n"; case 3: drank = "{FFD700}Gold VIP{FFFFFF}\n"; case 4: drank = "{E5E4E2}Platinum VIP{FFFFFF}\n"; case 5: drank = "{800080}VIP Moderator{FFFFFF}\n"; } } new famedrank[64]; if(PlayerInfo[targetid][pFamed] > 0) { switch(PlayerInfo[targetid][pFamed]) { case 1: famedrank = "{228B22}Old-School{FFFFFF}\n"; case 2: famedrank = "{FF7F00}Chartered Old-School{FFFFFF}\n"; case 3: famedrank = "{ADFF2F}Famed{FFFFFF}\n"; case 4: famedrank = "{8F00FF}Famed Commissioner{FFFFFF}\n"; case 5: famedrank = "{8F00FF}Famed Moderator{FFFFFF}\n"; case 6: famedrank = "{8F00FF}Famed Vice-Chairman{FFFFFF}\n"; case 7: famedrank = "{8F00FF}Famed Chairman{FFFFFF}\n"; } } if(PlayerInfo[targetid][pMarriedID] == -1) format(PlayerInfo[targetid][pMarriedName], MAX_PLAYER_NAME, "Nobody"); new nxtlevel = PlayerInfo[targetid][pLevel]+1; //new expamount = nxtlevel*4; new costlevel = nxtlevel*25000; new exp = ((50 * (PlayerInfo[targetid][pLevel]) * (PlayerInfo[targetid][pLevel]) * (PlayerInfo[targetid][pLevel]) - 150 * (PlayerInfo[targetid][pLevel]) * (PlayerInfo[targetid][pLevel]) + 600 * (PlayerInfo[targetid][pLevel])) / 5) - PlayerInfo[playerid][pXP]; new Float:health, Float:armor; GetPlayerHealth(targetid, health); GetPlayerArmour(targetid, armor); new Float:px,Float:py,Float:pz; GetPlayerPos(targetid, px, py, pz); new zone[MAX_ZONE_NAME]; GetPlayer3DZone(targetid, zone, sizeof(zone)); //================================================================================================// SetPVarInt(playerid, "txtthongtin", targetid); format(header, sizeof(header), "Ten:%s", GetPlayerNameEx(targetid)); PlayerTextDrawSetString(playerid, Textdraw[5][playerid],header); format(resultline, sizeof(resultline),"Level:%d", PlayerInfo[targetid][pLevel]); PlayerTextDrawSetString(playerid, Textdraw[8][playerid],resultline); format(resultline, sizeof(resultline),"Gioi Tinh:%s", sext); PlayerTextDrawSetString(playerid, Textdraw[9][playerid],resultline); format(resultline, sizeof(resultline),"Ngay sinh:%s", PlayerInfo[targetid][pBirthDate]); PlayerTextDrawSetString(playerid, Textdraw[10][playerid],resultline); format(resultline, sizeof(resultline),"Ket Hon:%s", PlayerInfo[targetid][pMarriedName]); PlayerTextDrawSetString(playerid, Textdraw[11][playerid],resultline); format(resultline, sizeof(resultline),"Vi Tri:%s (%0.2f, %0.2f, %0.2f)", zone, px, py, pz); PlayerTextDrawSetString(playerid, Textdraw[13][playerid],resultline); format(resultline, sizeof(resultline),"Mau:%.1f", health); PlayerTextDrawSetString(playerid, Textdraw[14][playerid],resultline); format(resultline, sizeof(resultline),"Giap:%.1f", armor); PlayerTextDrawSetString(playerid, Textdraw[15][playerid],resultline); format(resultline, sizeof(resultline),"Gio Da Choi:%s", number_format(PlayerInfo[targetid][pConnectHours])); PlayerTextDrawSetString(playerid, Textdraw[16][playerid],resultline); format(resultline, sizeof(resultline),"Quoc Tich:%s", nation); PlayerTextDrawSetString(playerid, Textdraw[17][playerid],resultline); format(resultline, sizeof(resultline),"Bao Hiem:%s", insur); PlayerTextDrawSetString(playerid, Textdraw[18][playerid],resultline); format(resultline, sizeof(resultline),"Cong Viec:%s", GetJobName(PlayerInfo[targetid][pJob])); PlayerTextDrawSetString(playerid, Textdraw[19][playerid],resultline); format(resultline, sizeof(resultline),"Cong Viec Phu:%s", GetJobName(PlayerInfo[targetid][pJob2])); PlayerTextDrawSetString(playerid, Textdraw[20][playerid],resultline); format(resultline, sizeof(resultline),"%s\n\ %s\ %s\ {FFFFFF}Cap do: %d\n\ Gioi tinh: %s\n\ Ngay sinh: %s\n\ Vi tri hien tai: %s (%0.2f, %0.2f, %0.2f)\n\ Da ket hon: %s\n\ Mau: %.1f\n\ Giap: %.1f\n\ Trang thai: %d\n\ Fitness: %d\n\ Gio da choi: %s\n\ Diem nang cap: %s\n\ XP can thiet de nang cap: %s va $%s)\n\ Quoc tich: %s\n\ %s\ %s\ Cong viec: %s (Cap do: %d)\n\ Cong viec 2: %s (Cap do: %d)\n\ Bao hiem: %s", staffrank, famedrank, drank, PlayerInfo[targetid][pLevel], sext, PlayerInfo[targetid][pBirthDate], zone, px, py, pz, PlayerInfo[targetid][pMarriedName], health, armor, PlayerInfo[targetid][pHunger], PlayerInfo[targetid][pFitness], number_format(PlayerInfo[targetid][pConnectHours]), number_format(PlayerInfo[targetid][gPupgrade]), number_format(CheckXP(exp)), number_format(costlevel), nation, org, biz, GetJobName(PlayerInfo[targetid][pJob]), GetJobLevel(targetid, PlayerInfo[targetid][pJob]), GetJobName(PlayerInfo[targetid][pJob2]), GetJobLevel(targetid, PlayerInfo[targetid][pJob2]), insur); ShowPlayerDialog(playerid, DISPLAY_STATS, DIALOG_STYLE_MSGBOX, header, resultline, "Trang Sau", "Dong lai"); } return 1; }