06.10.2018, 19:38
i have an idcard textdraw, it works fine on test server, but doesn't work on live server.
Код:
new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; new Text:Textdraw4; new Text:Textdraw5; new Text:Textdraw6; new Text:Textdraw7; new Text:Textdraw8; new Text:Textdraw9; new Text:Textdraw10; new Text:Textdraw11; new Text:Textdraw12; new Text:Textdraw13; new Text:Textdraw14; new Text:TDEditor_TD; new Text:Textdraw16; new Text:Textdraw17; under ongamemodeinit for(new i = 0; i < MAX_PLAYERS; i++) { Textdraw16 = TextDrawCreate(215.988296, 168.583343, "LD_SPAC:white"); TextDrawLetterSize(Textdraw16, 0.000000, 0.000000); TextDrawTextSize(Textdraw16, 208.023422, 134.749969); TextDrawAlignment(Textdraw16, 1); TextDrawColor(Textdraw16, -1); TextDrawSetShadow(Textdraw16, 0); TextDrawSetOutline(Textdraw16, 0); TextDrawFont(Textdraw16, 4); Textdraw0 = TextDrawCreate(262.840454, 209.416687, "2 AGE: 28"); TextDrawLetterSize(Textdraw0, 0.167950, 1.016667); TextDrawAlignment(Textdraw0, 1); TextDrawColor(Textdraw0, -1); TextDrawSetShadow(Textdraw0, 0); TextDrawSetOutline(Textdraw0, 1); TextDrawBackgroundColor(Textdraw0, 51); TextDrawFont(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); Textdraw1 = TextDrawCreate(263.308776, 218.750000, "3 ADR: 268 Fort Carson, Main St. 14"); TextDrawLetterSize(Textdraw1, 0.167950, 1.016667); TextDrawAlignment(Textdraw1, 1); TextDrawColor(Textdraw1, -1); TextDrawSetShadow(Textdraw1, 0); TextDrawSetOutline(Textdraw1, 1); TextDrawBackgroundColor(Textdraw1, 51); TextDrawFont(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); Textdraw2 = TextDrawCreate(215.988174, 182.000030, "LD_SPAC:white"); TextDrawLetterSize(Textdraw2, 0.000000, 0.000000); TextDrawTextSize(Textdraw2, 208.023437, 9.916646); TextDrawAlignment(Textdraw2, 1); TextDrawColor(Textdraw2, 1661035775); TextDrawSetShadow(Textdraw2, 0); TextDrawSetOutline(Textdraw2, 0); TextDrawBackgroundColor(Textdraw2, -16776961); TextDrawFont(Textdraw2, 4); Textdraw3 = TextDrawCreate(218.799377, 181.416641, "www.sa.gov"); TextDrawLetterSize(Textdraw3, 0.167950, 1.016667); TextDrawAlignment(Textdraw3, 1); TextDrawColor(Textdraw3, -1); TextDrawSetShadow(Textdraw3, 0); TextDrawSetOutline(Textdraw3, 1); TextDrawBackgroundColor(Textdraw3, 51); TextDrawFont(Textdraw3, 1); TextDrawSetProportional(Textdraw3, 1); Textdraw4 = TextDrawCreate(305.476257, 181.416625, "We won't be broken hypocrites forever"); TextDrawLetterSize(Textdraw4, 0.167950, 1.016667); TextDrawAlignment(Textdraw4, 1); TextDrawColor(Textdraw4, -1); TextDrawSetShadow(Textdraw4, 0); TextDrawSetOutline(Textdraw4, 1); TextDrawBackgroundColor(Textdraw4, 51); TextDrawFont(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 1); Textdraw5 = TextDrawCreate(219.267944, 170.333328, "SAN ANDREAS - Bone County"); TextDrawLetterSize(Textdraw5, 0.167950, 1.016667); TextDrawAlignment(Textdraw5, 1); TextDrawColor(Textdraw5, 1661035775); TextDrawSetShadow(Textdraw5, 0); TextDrawSetOutline(Textdraw5, 0); TextDrawBackgroundColor(Textdraw5, 51); TextDrawFont(Textdraw5, 1); TextDrawSetProportional(Textdraw5, 1); Textdraw6 = TextDrawCreate(263.308929, 236.249984, "4 Sex M"); TextDrawLetterSize(Textdraw6, 0.167950, 1.016667); TextDrawAlignment(Textdraw6, 1); TextDrawColor(Textdraw6, -1); TextDrawSetShadow(Textdraw6, 0); TextDrawSetOutline(Textdraw6, 1); TextDrawBackgroundColor(Textdraw6, 51); TextDrawFont(Textdraw6, 1); TextDrawSetProportional(Textdraw6, 1); Textdraw7 = TextDrawCreate(293.842407, 236.250015, "5 Hgt 180cm"); TextDrawLetterSize(Textdraw7, 0.167950, 1.016667); TextDrawAlignment(Textdraw7, 1); TextDrawColor(Textdraw7, -1); TextDrawSetShadow(Textdraw7, 0); TextDrawSetOutline(Textdraw7, 1); TextDrawBackgroundColor(Textdraw7, 51); TextDrawFont(Textdraw7, 1); TextDrawSetProportional(Textdraw7, 1); Textdraw8 = TextDrawCreate(333.587158, 236.249954, "6 Wgt 89kg"); TextDrawLetterSize(Textdraw8, 0.167950, 1.016667); TextDrawAlignment(Textdraw8, 1); TextDrawColor(Textdraw8, -1); TextDrawSetShadow(Textdraw8, 0); TextDrawSetOutline(Textdraw8, 1); TextDrawBackgroundColor(Textdraw8, 51); TextDrawFont(Textdraw8, 1); TextDrawSetProportional(Textdraw8, 1); Textdraw9 = TextDrawCreate(373.411437, 236.250030, "7 Eyes BRN"); TextDrawLetterSize(Textdraw9, 0.167950, 1.016667); TextDrawAlignment(Textdraw9, 1); TextDrawColor(Textdraw9, -1); TextDrawSetShadow(Textdraw9, 0); TextDrawSetOutline(Textdraw9, 1); TextDrawBackgroundColor(Textdraw9, 51); TextDrawFont(Textdraw9, 1); TextDrawSetProportional(Textdraw9, 1); Textdraw10 = TextDrawCreate(263.777465, 247.916641, "8 Class B"); TextDrawLetterSize(Textdraw10, 0.167950, 1.016667); TextDrawAlignment(Textdraw10, 1); TextDrawColor(Textdraw10, -1); TextDrawSetShadow(Textdraw10, 0); TextDrawSetOutline(Textdraw10, 1); TextDrawBackgroundColor(Textdraw10, 51); TextDrawFont(Textdraw10, 1); TextDrawSetProportional(Textdraw10, 1); Textdraw11 = TextDrawCreate(294.231597, 247.916671, "9 End NONE"); TextDrawLetterSize(Textdraw11, 0.167950, 1.016667); TextDrawAlignment(Textdraw11, 1); TextDrawColor(Textdraw11, -1); TextDrawSetShadow(Textdraw11, 0); TextDrawSetOutline(Textdraw11, 1); TextDrawBackgroundColor(Textdraw11, 51); TextDrawFont(Textdraw11, 1); TextDrawSetProportional(Textdraw11, 1); Textdraw12 = TextDrawCreate(333.587219, 247.916641, "10 Hair BRN"); TextDrawLetterSize(Textdraw12, 0.167950, 1.016667); TextDrawAlignment(Textdraw12, 1); TextDrawColor(Textdraw12, -1); TextDrawSetShadow(Textdraw12, 0); TextDrawSetOutline(Textdraw12, 1); TextDrawBackgroundColor(Textdraw12, 51); TextDrawFont(Textdraw12, 1); TextDrawSetProportional(Textdraw12, 1); Textdraw13 = TextDrawCreate(390.278137, 288.166717, "859CD81"); TextDrawLetterSize(Textdraw13, 0.167950, 1.016667); TextDrawAlignment(Textdraw13, 1); TextDrawColor(Textdraw13, -1); TextDrawSetShadow(Textdraw13, 0); TextDrawSetOutline(Textdraw13, 1); TextDrawBackgroundColor(Textdraw13, 51); TextDrawFont(Textdraw13, 1); TextDrawSetProportional(Textdraw13, 1); Textdraw14 = TextDrawCreate(208.617874, 201.000000, "usebox"); TextDrawLetterSize(Textdraw14, 0.000000, 3.507407); TextDrawTextSize(Textdraw14, 166.667633, 0.000000); TextDrawAlignment(Textdraw14, 1); TextDrawColor(Textdraw14, 0); TextDrawUseBox(Textdraw14, true); TextDrawBoxColor(Textdraw14, 102); TextDrawSetShadow(Textdraw14, 0); TextDrawSetOutline(Textdraw14, 0); TextDrawFont(Textdraw14, 4); TDEditor_TD = TextDrawCreate(215.000000, 195.000000, ""); TextDrawLetterSize(TDEditor_TD, 0.000000, 0.000000); TextDrawTextSize(TDEditor_TD, 51.000000, 71.000000); TextDrawAlignment(TDEditor_TD, 1); TextDrawColor(TDEditor_TD, -1); TextDrawSetShadow(TDEditor_TD, 0); TextDrawSetOutline(TDEditor_TD, 0); TextDrawBackgroundColor(TDEditor_TD, 0xFFFFFF00); TextDrawFont(TDEditor_TD, 5); TextDrawSetProportional(TDEditor_TD, 0); TextDrawSetShadow(TDEditor_TD, 0); TextDrawSetSelectable(TDEditor_TD, true); TextDrawSetPreviewModel(TDEditor_TD, 265); TextDrawSetPreviewRot(TDEditor_TD, 0.000000, 0.000000, 0.000000, 1.000000); Textdraw17 = TextDrawCreate(262.840332, 200.083297, "1 NAME: James Montgomery"); TextDrawLetterSize(Textdraw17, 0.167950, 1.016667); TextDrawAlignment(Textdraw17, 1); TextDrawColor(Textdraw17, -1); TextDrawSetShadow(Textdraw17, 0); TextDrawSetOutline(Textdraw17, 1); TextDrawBackgroundColor(Textdraw17, 51); TextDrawFont(Textdraw17, 1); TextDrawSetProportional(Textdraw17, 1); Textdraw12 = TextDrawCreate(333.587219, 247.916641, "10 Hair BRN"); TextDrawLetterSize(Textdraw12, 0.167950, 1.016667); TextDrawAlignment(Textdraw12, 1); TextDrawColor(Textdraw12, -1); TextDrawSetShadow(Textdraw12, 0); TextDrawSetOutline(Textdraw12, 1); TextDrawBackgroundColor(Textdraw12, 51); TextDrawFont(Textdraw12, 1); TextDrawSetProportional(Textdraw12, 1); } command CMD:idcard(playerid, params[]) { new option1[128]; new str[128]; if(sscanf(params, "s[128]", option1)) return SendClientMessage(playerid, COLOR_GRAY, "/idcard [kйszнt|megnйz|felmutat|eldob]"); { if(!strcmp(option1, "kйszнt", true)) { if(!IsPlayerInRangeOfPoint(playerid, 2.0, -163.0946, 1122.4309, 19.7422) && Character[playerid][IDCvan] == 0) { new str[128], dialog[1000]; //SetPlayerCameraPos(playerid, -168.11, 1123.18, 19.74); //SetPlayerCameraLookAt(playerid, -163.37, 1123.31, 19.74); SendClientMessage(playerid, -1, "Szemйlyi lйtrehozva."); format(Character[playerid][IDCname], 32, "%s", GetRoleplayName(playerid)); Character[playerid][IDCage] = Character[playerid][Age]; Character[playerid][IDCvan] = 1; format(Character[playerid][IDCid], 16, "%s%s%d%d%s%s%s", LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))], random(10), random(10), LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))]); } else { SendErrorMessage(playerid, "Mбr van szemйlyid."); } } if(!strcmp(option1, "megnйz", true)) { if(Character[playerid][IDCvan] == 1) { new str[128]; //SendClientMessage(playerid, -1, "Jу helyen vagy!"); //SendClientMessage(playerid, -1, "megnйzted a szemйlyid. juhu."); //format(str, sizeof(str), "A szemйlyiden ez a nevecske б l l : %s", Character[playerid][IDCname]); //SendClientMessage(playerid, -1, str); //format(str, sizeof(str), "jъ бr %d jears old", Character[playerid][IDCage]); //SendClientMessage(playerid, -1, str); format(str, sizeof(str), "1 NAME: %s", Character[playerid][IDCname]); TextDrawSetString(Textdraw17, str); format(str, sizeof(str), "2 AGE: %d", Character[playerid][IDCage]); TextDrawSetString(Textdraw0, str); format(str, sizeof(str), "%s", Character[playerid][IDCid]); TextDrawSetString(Textdraw13, str); //format(str, sizeof(str), "1 NAME: %s", Character[playerid][IDCname]); //TextDrawSetString(Textdraw17, str); //format(str, sizeof(str), "1 NAME: %s", Character[playerid][IDCname]); //TextDrawSetString(Textdraw17, str); //format(str, sizeof(str), "1 NAME: %s", Character[playerid][IDCname]); //TextDrawSetString(Textdraw17, str); TextDrawShowForPlayer(playerid, Text:Textdraw0); TextDrawShowForPlayer(playerid, Text:Textdraw1); TextDrawShowForPlayer(playerid, Text:Textdraw2); TextDrawShowForPlayer(playerid, Text:Textdraw3); TextDrawShowForPlayer(playerid, Text:Textdraw4); TextDrawShowForPlayer(playerid, Text:Textdraw5); TextDrawShowForPlayer(playerid, Text:Textdraw6); TextDrawShowForPlayer(playerid, Text:Textdraw7); TextDrawShowForPlayer(playerid, Text:Textdraw8); TextDrawShowForPlayer(playerid, Text:Textdraw9); TextDrawShowForPlayer(playerid, Text:Textdraw10); TextDrawShowForPlayer(playerid, Text:Textdraw11); TextDrawShowForPlayer(playerid, Text:Textdraw12); TextDrawShowForPlayer(playerid, Text:Textdraw13); TextDrawShowForPlayer(playerid, Text:Textdraw14); TextDrawShowForPlayer(playerid, Text:Textdraw16); TextDrawShowForPlayer(playerid, Text:Textdraw17); TextDrawShowForPlayer(playerid, Text:TDEditor_TD); } else { SendErrorMessage(playerid, "Nincs szemйlyid."); } } } return 1; }