-
Posts
374 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Everything posted by Jimmi
-
Mda..tot am problema.Eu am helper 3 insa imi arata si scrisul de la 1 2. in plus unde este [] ar trebui sa arate id-ul insa nu o face si imi mai si arata ca mi-a raspuns jucatorul dar apare pe numele meu. Asta e ce vad eu: http://imgur.com/MHyUZvc Asta e ce vede un user normal: http://imgur.com/SnRPPnb return 0; } if(IsInChat[playerid] == 1) { foreach(Player, i) { if(IsInChat[i] > 0) { if(PlayerInfo[playerid][pAdmin] > 1) { format (string,sizeof ( string ), "( ! )Administrator:[%s][%s]", GetName(playerid), text); SendClientMessage(i, 0x6633CCFF, string); } if(PlayerInfo[playerid][pAdmin] > 8) { format (string,sizeof ( string ), " * (R)Administrator(8)%s[%s]:%s(R: %s[%s])", GetName(playerid),playerid, text, GetName(i), playerid); SendClientMessage(i, 0x6633CCFF, string); } if(PlayerInfo[playerid][pTrial] > 1) { format (string,sizeof ( string ), " * (R)Asistent(1)%s[%s]:%s(R: %s[%s])", GetName(playerid),playerid, text, GetName(i), playerid); SendClientMessage(i, 0x6633CCFF, string); } if(PlayerInfo[playerid][pTrial] > 2) { format (string,sizeof ( string ), " * (R)Asistent(2)%s[%s]:%s(R: %s[%s])", GetName(playerid),playerid, text, GetName(i), playerid); SendClientMessage(i, 0x6633CCFF, string); } if(PlayerInfo[playerid][pTrial] > 3) { format (string,sizeof ( string ), " * (R)Asistent(3)%s[%s]:%s(R: %s[%s])", GetName(playerid),playerid, text, GetName(i), playerid); SendClientMessage(i, 0x6633CCFF, string); } { format (string,sizeof ( string ), "( ! )Jucator:[%s][%s]", GetName(i), text); SendClientMessage(i, 0x6633CCFF, string); } } } return 0; }
-
Problema intalnita (descriere):Am facut un chat report la /opr sa se deschia si la /cpr sa s inchia insa nu ii trimite mesajul si celui carui i-am deschis report imi apare doar mie si apare gresit.. Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): if(IsInChat[playerid] == 1) { foreach(Player, i) { if(IsInChat[i] > 0) { if(PlayerInfo[playerid][pAdmin] > 1) { format (string,sizeof ( string ), "( ! )Administrator:%s", GetName(playerid), text); SendClientMessage(playerid, 0x6633CCFF, string); } if(PlayerInfo[playerid][pTrial] > 1) { format (string,sizeof ( string ), "( ! )Asistent:%s", GetName(playerid), text); SendClientMessage(playerid, 0x6633CCFF, string); } { format (string,sizeof ( string ), "( ! )Jucator:%s", GetName(playerid), text); SendClientMessage(playerid, 0x6633CCFF, string); } } } } Imagini / Video (optional):http://i.imgur.com/E2m6QHn.png Ati incercat sa rezolvati singur?:Da..
-
Salut, la dialoguri cum pot face optiuni care sa nu faca nimic.dau pe el si sa se inchida dialogul if(listitem == 0) { ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_INPUT,"{0066FF}X {FFFFFF}foloeste {0066FF}hack:","Introdu numele celui care foloeste HACK.","Select","Cancel"); return 1; }
-
tot nu [20:37:07] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:37:07] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 11.944 milliseconds [20:37:07] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving [20:37:07] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:37:07] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 11.903 milliseconds [20:37:07] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving [20:37:35] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [20:37:36] [DEBUG] mysql_query - connection: 1, query: "Jimmis House", use_cache: true [20:37:36] [DEBUG] CMySQLQuery::Execute - starting query execution [20:37:36] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1
-
Salut, Da, am baza de date unde sa o insereze si totusi nu o face.Problema a aparut la trecerea gm-ului pe r39-3
-
Problema intalnita (descriere):Am o problema.Cand dau /hcreate imi creeaza casa dar nu o insereaza in mysql... Ero(area / rile) / warning-(ul / urile): [22:32:28] [DEBUG] mysql_tquery - connection: 1, query: "Jimmis House", callback: "(null)", format: "(null)" [22:32:28] [DEBUG] CMySQLQuery::Execute[] - starting query execution [22:32:28] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Jimmis House' at line 1 [22:32:28] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError Liniile de cod / sursa / script-ul(obligatoriu): if(strcmp(cmd, "/hcreate", true) == 0) { if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_RED, "Nu ai rangul administrativ necesar!"); new Float:Pos[3], Float:IntPos[3], inter, ivInt, ivPrice, ivLevel; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { { SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Folosire:{FFFFFF} /hcreate <hint> <hprice> <level>"); SendClientMessage(playerid, COLOR_WHITE, "Interioare {00FF00}Level 3 : {FFFFFF}1-3 "); SendClientMessage(playerid, COLOR_WHITE, "Interioare {00FF00}Level 5 : {FFFFFF}4-8 "); SendClientMessage(playerid, COLOR_WHITE, "Interioare {00FF00}Level 8 : {FFFFFF}9-13 "); SendClientMessage(playerid, COLOR_WHITE, "Interioare {00FF00}Level 12 : {FFFFFF}13-18 "); } } ivInt = strvalEx(tmp); tmp = strtok(cmdtext, idx); ivPrice = strvalEx(tmp); tmp = strtok(cmdtext, idx); ivLevel = strvalEx(tmp); if(ivLevel >= 1 && ivLevel < 51) {} else return 1; if(ivPrice >= 1 && ivPrice < 100000000) {} else return 1; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); if(ivInt == 1) { IntPos[0] = 244.0259; IntPos[1] = 305.1010; IntPos[2] = 999.1484; inter = 1; } else if(ivInt == 2) { IntPos[0] = 266.4987; IntPos[1] = 304.9929; IntPos[2] = 999.1484; inter = 2; } else if(ivInt == 3) { IntPos[0] = 2233.7390; IntPos[1] = -1115.2629; IntPos[2] = 1050.8828; inter = 5; } else if(ivInt == 4) { IntPos[0] = 2468.8408; IntPos[1] = -1698.3160; IntPos[2] = 1013.5078; inter = 2; } else if(ivInt == 5) { IntPos[0] = -2495.9312; IntPos[1] = -1692.5028; IntPos[2] = 1014.7422; inter = 3; } else if(ivInt == 6) { IntPos[0] = 226.0439; IntPos[1] = 1239.9548; IntPos[2] = 1082.1406; inter = 2; } else if(ivInt == 7) { IntPos[0] = 223.1608; IntPos[1] = 1287.0765; IntPos[2] = 1082.1406; inter = 1; } else if(ivInt == 8) { IntPos[0] = -68.8871; IntPos[1] = 1351.2125; IntPos[2] = 1080.2109; inter = 6; } else if(ivInt == 9) { IntPos[0] = 2365.3518; IntPos[1] = -1135.5959; IntPos[2] = 1050.8826; inter = 8; } else if(ivInt == 10) { IntPos[0] = -42.5143; IntPos[1] = 1405.4723; IntPos[2] = 1084.4297; inter = 8; } else if(ivInt == 11) { IntPos[0] = 2317.8752; IntPos[1] = -1026.7662; IntPos[2] = 1050.2178; inter = 9; } else if(ivInt == 12) { IntPos[0] = 295.1149; IntPos[1] = 1472.2565; IntPos[2] = 1080.209961; inter = 15; } else if(ivInt == 13) { IntPos[0] = 24.0539; IntPos[1] = 1340.1604; IntPos[2] = 1084.3750; inter = 10; } else if(ivInt == 14) { IntPos[0] = 226.2968; IntPos[1] = 1114.1987; IntPos[2] = 1080.9929; inter = 5; } else if(ivInt == 15) { IntPos[0] = 1298.8145; IntPos[1] = -797.0127; IntPos[2] = 1084.0078; inter = 5; } else if(ivInt == 16) { IntPos[0] = 235.3070; IntPos[1] = 1186.6791; IntPos[2] = 1080.2578; inter = 3; } else if(ivInt == 17) { IntPos[0] = 234.2038; IntPos[1] = 1063.7219; IntPos[2] = 1084.2123; inter = 6; } else if(ivInt == 18) { IntPos[0] = 83.1641; IntPos[1] = 1322.2819; IntPos[2] = 1083.8662; inter = 9; } else return 1; ++ Total_House_Created; HouseInfo[Total_House_Created][hPosX] = Pos[0]; HouseInfo[Total_House_Created][hPosY] = Pos[1]; HouseInfo[Total_House_Created][hPosZ] = Pos[2]; HouseInfo[Total_House_Created][hPosX1] = IntPos[0]; HouseInfo[Total_House_Created][hPosY1] = IntPos[1]; HouseInfo[Total_House_Created][hPosZ1] = IntPos[2]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%ss House", sendername); strmid(HouseInfo[Total_House_Created][hName], string, 0, 255, 255); strmid(HouseInfo[Total_House_Created][hOwner], "Unbought", 0, 255, 255); HouseInfo[Total_House_Created][hValue] = ivPrice; HouseInfo[Total_House_Created][hStorage] = 0; HouseInfo[Total_House_Created][hWorld] = GetPlayerVirtualWorld(playerid); HouseInfo[Total_House_Created][hInt] = inter; HouseInfo[Total_House_Created][hChirie] = 0; HouseInfo[Total_House_Created][hCamera] = 0; HouseInfo[Total_House_Created][hPrivacy] = 0; HouseInfo[Total_House_Created][hUpgradeLock] = ivInt; HouseInfo[Total_House_Created][hPrice] = 0; HouseInfo[Total_House_Created][hLock] = 1; HouseInfo[Total_House_Created][hLevel] = ivLevel; HouseInfo[Total_House_Created][hOwned] = 0; HouseInfo[Total_House_Created][hForSale] = GetPlayerVirtualWorld(playerid); new query[512]; format(query, sizeof(query) ,"INSERT INTO `houses` (`hID`,`PosX`,`PosY`,`PosZ`,`PosX1`,`PosY1`,`PosZ1`,`Name`,`Owner`,`Value`,`Storage`,`World`,`Interior`,`Chirie`,`Privacy`,`UpgradeLock`,`ForSale`,`Price`,`Lock`,`Level`) VALUES ('%d','%f','%f','%f','%f','%f','%f','%s','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d')", Total_House_Created, HouseInfo[Total_House_Created][hPosX], HouseInfo[Total_House_Created][hPosY], HouseInfo[Total_House_Created][hPosZ], HouseInfo[Total_House_Created][hPosX1], HouseInfo[Total_House_Created][hPosY1], HouseInfo[Total_House_Created][hPosZ1], HouseInfo[Total_House_Created][hName], HouseInfo[Total_House_Created][hOwner], HouseInfo[Total_House_Created][hValue], HouseInfo[Total_House_Created][hStorage], HouseInfo[Total_House_Created][hWorld], HouseInfo[Total_House_Created][hInt], HouseInfo[Total_House_Created][hChirie], HouseInfo[Total_House_Created][hPrivacy], HouseInfo[Total_House_Created][hUpgradeLock], HouseInfo[Total_House_Created][hForSale], HouseInfo[Total_House_Created][hPrice], HouseInfo[Total_House_Created][hLock], HouseInfo[Total_House_Created][hLevel]); mysql_tquery(handle,string, "", ""); new locktext[10]; if(HouseInfo[Total_House_Created][hLock] == 0) locktext = "Unlocked"; else if(HouseInfo[Total_House_Created][hLock] != 0) locktext = "Locked"; if(HouseInfo[Total_House_Created][hWorld] == 0) HouseIcon[Total_House_Created] = CreateDynamicMapIcon(HouseInfo[Total_House_Created][hPosX], HouseInfo[Total_House_Created][hPosY], HouseInfo[Total_House_Created][hPosZ], 31, -1, 0, 0, -1, 50.0); HousePickup[Total_House_Created] = CreatePickup(1273, 1, HouseInfo[Total_House_Created][hPosX], HouseInfo[Total_House_Created][hPosY], HouseInfo[Total_House_Created][hPosZ], HouseInfo[Total_House_Created][hWorld]); HousePickup1[Total_House_Created] = CreatePickup(1273, 1, HouseInfo[Total_House_Created][hPosX1], HouseInfo[Total_House_Created][hPosY1], HouseInfo[Total_House_Created][hPosZ1], Total_House_Created); if(HouseInfo[Total_House_Created][hUpgradeLock] != 18) format(string, sizeof(string), "{00BC00}De vanzare!\nNume: {F6F6F6}-\n{00BC00}Detinator: {F6F6F6}-\n{00BC00}Pret: {F6F6F6}$%s\n{00BC00}Nivel: {F6F6F6}%d\n{00BC00}ID-ul proprietatii: {F6F6F6}%d", FormatNumber(HouseInfo[Total_House_Created][hValue]), HouseInfo[Total_House_Created][hLevel], Total_House_Created); else format(string, sizeof(string), "{00BC00}De inchiriat!\nNume: {F6F6F6}-\n{00BC00}Detinator: {F6F6F6}-\n{00BC00}Pret: {F6F6F6}$%s\n{00BC00}Nivel: {F6F6F6}%d\n{00BC00}ID-ul proprietatii: {F6F6F6}%d", FormatNumber(HouseInfo[Total_House_Created][hValue]), HouseInfo[Total_House_Created][hLevel], Total_House_Created); HouseLabel[Total_House_Created] = Create3DTextLabel(string, 0xFFFFFFFF, HouseInfo[Total_House_Created][hPosX], HouseInfo[Total_House_Created][hPosY], HouseInfo[Total_House_Created][hPosZ]+0.2, 20.0, HouseInfo[Total_House_Created][hWorld]); SavePHouse(Total_House_Created); SendClientMessage(playerid, COLOR_WHITE, "Casa creata!"); return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da
-
LoginS[0] = TextDrawCreate(641.500061, 0.916665, "usebox"); TextDrawLetterSize(LoginS[0], 0.000000, 10.572216); TextDrawTextSize(LoginS[0], -1.999999, 0.000000); TextDrawAlignment(LoginS[0], 1); TextDrawColor(LoginS[0], 0); TextDrawUseBox(LoginS[0], true); TextDrawBoxColor(LoginS[0], 102); TextDrawSetShadow(LoginS[0], 0); TextDrawSetOutline(LoginS[0], 0); TextDrawFont(LoginS[0], 0); daca il scot pe asta dispar toate....
-
for(new i; i < sizeof(LoginS); i++) { TextDrawShowForPlayer(playerid, LoginS); }
-
Problema intalnita (descriere):Am facut un sistem de login cu txd si am 1 problema.1txd apare si dispare imediat.doar 1 singur...dar nu imi dau seama care e din alea.... Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu) LoginS[0] = TextDrawCreate(641.500061, 0.916665, "usebox"); TextDrawLetterSize(LoginS[0], 0.000000, 10.572216); TextDrawTextSize(LoginS[0], -1.999999, 0.000000); TextDrawAlignment(LoginS[0], 1); TextDrawColor(LoginS[0], 0); TextDrawUseBox(LoginS[0], true); TextDrawBoxColor(LoginS[0], 102); TextDrawSetShadow(LoginS[0], 0); TextDrawSetOutline(LoginS[0], 0); TextDrawFont(LoginS[0], 0); LoginS[1] = TextDrawCreate(430.529418, 100.433334, "usebox"); TextDrawLetterSize(LoginS[1], 0.000000, 31.001848); TextDrawTextSize(LoginS[1], 219.029434, 0.000000); TextDrawAlignment(LoginS[1], 1); TextDrawColor(LoginS[1], 0); TextDrawUseBox(LoginS[1], true); TextDrawBoxColor(LoginS[1], 102); TextDrawSetShadow(LoginS[1], 0); TextDrawSetOutline(LoginS[1], 0); TextDrawFont(LoginS[1], 0); LoginS[2] = TextDrawCreate(656.970520, 383.883392, "usebox"); TextDrawLetterSize(LoginS[2], 0.000000, 6.994436); TextDrawTextSize(LoginS[2], -198.000061, 0.000000); TextDrawAlignment(LoginS[2], 1); TextDrawColor(LoginS[2], 0); TextDrawUseBox(LoginS[2], true); TextDrawBoxColor(LoginS[2], 102); TextDrawSetShadow(LoginS[2], 0); TextDrawSetOutline(LoginS[2], 0); TextDrawFont(LoginS[2], 0); LoginS[3] = TextDrawCreate(151.533004, 161.216812, "usebox"); TextDrawLetterSize(LoginS[3], 0.000000, 18.503681); TextDrawTextSize(LoginS[3], 217.500000, 0.000000); TextDrawAlignment(LoginS[3], 1); TextDrawColor(LoginS[3], 0); TextDrawUseBox(LoginS[3], true); TextDrawBoxColor(LoginS[3], 102); TextDrawSetShadow(LoginS[3], 0); TextDrawSetOutline(LoginS[3], 0); TextDrawFont(LoginS[3], 0); LoginS[4] = TextDrawCreate(430.647094, 163.616867, "usebox"); TextDrawLetterSize(LoginS[4], 0.000000, 18.153675); TextDrawTextSize(LoginS[4], 501.500000, 0.000000); TextDrawAlignment(LoginS[4], 1); TextDrawColor(LoginS[4], 0); TextDrawUseBox(LoginS[4], true); TextDrawBoxColor(LoginS[4], 102); TextDrawSetShadow(LoginS[4], 0); TextDrawSetOutline(LoginS[4], 0); TextDrawFont(LoginS[4], 0); LoginS[5] = TextDrawCreate(433.000000, 163.033538, "usebox"); TextDrawLetterSize(LoginS[5], 0.000000, 18.153675); TextDrawTextSize(LoginS[5], 501.500000, 0.000000); TextDrawAlignment(LoginS[5], 1); TextDrawColor(LoginS[5], 0); TextDrawUseBox(LoginS[5], true); TextDrawBoxColor(LoginS[5], 102); TextDrawSetShadow(LoginS[5], 0); TextDrawSetOutline(LoginS[5], 0); TextDrawFont(LoginS[5], 0); LoginS[6] = TextDrawCreate(148.500000, 160.533523, "LD_SPAC:white"); TextDrawLetterSize(LoginS[6], 0.000000, 0.000000); TextDrawTextSize(LoginS[6], 73.000000, -1.400001); TextDrawAlignment(LoginS[6], 1); TextDrawColor(LoginS[6], -1); TextDrawSetShadow(LoginS[6], 0); TextDrawSetOutline(LoginS[6], 0); TextDrawFont(LoginS[6], 4); LoginS[7] = TextDrawCreate(148.500000, 330.000000, "LD_SPAC:white"); TextDrawLetterSize(LoginS[7], 0.000000, 0.000000); TextDrawTextSize(LoginS[7], 73.000000, -1.400001); TextDrawAlignment(LoginS[7], 1); TextDrawColor(LoginS[7], -1); TextDrawSetShadow(LoginS[7], 0); TextDrawSetOutline(LoginS[7], 0); TextDrawFont(LoginS[7], 4); LoginS[8] = TextDrawCreate(430.500000, 329.133239, "LD_SPAC:white"); TextDrawLetterSize(LoginS[8], 0.000000, 0.000000); TextDrawTextSize(LoginS[8], 74.500000, -1.866667); TextDrawAlignment(LoginS[8], 1); TextDrawColor(LoginS[8], -1); TextDrawSetShadow(LoginS[8], 0); TextDrawSetOutline(LoginS[8], 0); TextDrawFont(LoginS[8], 4); LoginS[9] = TextDrawCreate(430.500000, 161.200149, "LD_SPAC:white"); TextDrawLetterSize(LoginS[9], 0.000000, 0.000000); TextDrawTextSize(LoginS[9], 75.000000, -1.400001); TextDrawAlignment(LoginS[9], 1); TextDrawColor(LoginS[9], -1); TextDrawSetShadow(LoginS[9], 0); TextDrawSetOutline(LoginS[9], 0); TextDrawFont(LoginS[9], 4); LoginS[10] = TextDrawCreate(150.000000, 329.000122, "LD_SPAC:white"); TextDrawLetterSize(LoginS[10], 0.000000, 0.000000); TextDrawTextSize(LoginS[10], -1.500000, -168.933059); TextDrawAlignment(LoginS[10], 1); TextDrawColor(LoginS[10], -1); TextDrawSetShadow(LoginS[10], 0); TextDrawSetOutline(LoginS[10], 0); TextDrawFont(LoginS[10], 4); LoginS[11] = TextDrawCreate(169.500000, 220.866760, "bizz's"); TextDrawLetterSize(LoginS[11], 0.240499, 1.893666); TextDrawAlignment(LoginS[11], 1); TextDrawColor(LoginS[11], -1); TextDrawSetShadow(LoginS[11], 0); TextDrawSetOutline(LoginS[11], 0); TextDrawBackgroundColor(LoginS[11], 51); TextDrawFont(LoginS[11], 2); TextDrawSetProportional(LoginS[11], 1); LoginS[12] = TextDrawCreate(221.500000, 98.933334, "LD_SPAC:white"); TextDrawLetterSize(LoginS[12], 0.000000, 0.000000); TextDrawTextSize(LoginS[12], -1.500000, 282.799987); TextDrawAlignment(LoginS[12], 1); TextDrawColor(LoginS[12], -1); TextDrawSetShadow(LoginS[12], 0); TextDrawSetOutline(LoginS[12], 0); TextDrawFont(LoginS[12], 4); LoginS[13] = TextDrawCreate(430.500000, 98.533332, "LD_SPAC:white"); TextDrawLetterSize(LoginS[13], 0.000000, 0.000000); TextDrawTextSize(LoginS[13], -1.500000, 282.799987); TextDrawAlignment(LoginS[13], 1); TextDrawColor(LoginS[13], -1); TextDrawSetShadow(LoginS[13], 0); TextDrawSetOutline(LoginS[13], 0); TextDrawFont(LoginS[13], 4); LoginS[14] = TextDrawCreate(429.000000, 381.266693, "LD_SPAC:white"); TextDrawLetterSize(LoginS[14], 0.000000, 0.000000); TextDrawTextSize(LoginS[14], 213.500000, 1.399991); TextDrawAlignment(LoginS[14], 1); TextDrawColor(LoginS[14], -1); TextDrawSetShadow(LoginS[14], 0); TextDrawSetOutline(LoginS[14], 0); TextDrawFont(LoginS[14], 4); LoginS[15] = TextDrawCreate(221.500000, 381.733367, "LD_SPAC:white"); TextDrawLetterSize(LoginS[15], 0.000000, 0.000000); TextDrawTextSize(LoginS[15], -221.000000, -1.399963); TextDrawAlignment(LoginS[15], 1); TextDrawColor(LoginS[15], -1); TextDrawSetShadow(LoginS[15], 0); TextDrawSetOutline(LoginS[15], 0); TextDrawFont(LoginS[15], 4); LoginS[16] = TextDrawCreate(220.500000, 99.933349, "LD_SPAC:white"); TextDrawLetterSize(LoginS[16], 0.000000, 0.000000); TextDrawTextSize(LoginS[16], -221.000000, -1.399963); TextDrawAlignment(LoginS[16], 1); TextDrawColor(LoginS[16], -1); TextDrawSetShadow(LoginS[16], 0); TextDrawSetOutline(LoginS[16], 0); TextDrawFont(LoginS[16], 4); LoginS[17] = TextDrawCreate(429.500000, 98.533348, "LD_SPAC:white"); TextDrawLetterSize(LoginS[17], 0.000000, 0.000000); TextDrawTextSize(LoginS[17], 213.500000, 1.399991); TextDrawAlignment(LoginS[17], 1); TextDrawColor(LoginS[17], -1); TextDrawSetShadow(LoginS[17], 0); TextDrawSetOutline(LoginS[17], 0); TextDrawFont(LoginS[17], 4); LoginS[18] = TextDrawCreate(164.000000, 182.066940, "HOUSES"); TextDrawLetterSize(LoginS[18], 0.240499, 1.893666); TextDrawAlignment(LoginS[18], 1); TextDrawColor(LoginS[18], -1); TextDrawSetShadow(LoginS[18], 0); TextDrawSetOutline(LoginS[18], 0); TextDrawBackgroundColor(LoginS[18], 51); TextDrawFont(LoginS[18], 2); TextDrawSetProportional(LoginS[18], 1); LoginS[19] = TextDrawCreate(174.000000, 203.466766, "100"); TextDrawLetterSize(LoginS[19], 0.269998, 1.282667); TextDrawAlignment(LoginS[19], 1); TextDrawColor(LoginS[19], -1); TextDrawSetShadow(LoginS[19], 0); TextDrawSetOutline(LoginS[19], 0); TextDrawBackgroundColor(LoginS[19], 51); TextDrawFont(LoginS[19], 2); TextDrawSetProportional(LoginS[19], 1); LoginS[20] = TextDrawCreate(174.500000, 242.733276, "100"); TextDrawLetterSize(LoginS[20], 0.269998, 1.282667); TextDrawAlignment(LoginS[20], 1); TextDrawColor(LoginS[20], -1); TextDrawSetShadow(LoginS[20], 0); TextDrawSetOutline(LoginS[20], 0); TextDrawBackgroundColor(LoginS[20], 51); TextDrawFont(LoginS[20], 2); TextDrawSetProportional(LoginS[20], 1); LoginS[21] = TextDrawCreate(161.500000, 259.666717, "Vehicles"); TextDrawLetterSize(LoginS[21], 0.240499, 1.893666); TextDrawAlignment(LoginS[21], 1); TextDrawColor(LoginS[21], -1); TextDrawSetShadow(LoginS[21], 0); TextDrawSetOutline(LoginS[21], 0); TextDrawBackgroundColor(LoginS[21], 51); TextDrawFont(LoginS[21], 2); TextDrawSetProportional(LoginS[21], 1); LoginS[22] = TextDrawCreate(174.500000, 278.266662, "100"); TextDrawLetterSize(LoginS[22], 0.269998, 1.282667); TextDrawAlignment(LoginS[22], 1); TextDrawColor(LoginS[22], -1); TextDrawSetShadow(LoginS[22], 0); TextDrawSetOutline(LoginS[22], 0); TextDrawBackgroundColor(LoginS[22], 51); TextDrawFont(LoginS[22], 2); TextDrawSetProportional(LoginS[22], 1); LoginS[23] = TextDrawCreate(446.500000, 184.466934, "record"); TextDrawLetterSize(LoginS[23], 0.240499, 1.893666); TextDrawAlignment(LoginS[23], 1); TextDrawColor(LoginS[23], -1); TextDrawSetShadow(LoginS[23], 0); TextDrawSetOutline(LoginS[23], 0); TextDrawBackgroundColor(LoginS[23], 51); TextDrawFont(LoginS[23], 2); TextDrawSetProportional(LoginS[23], 1); LoginS[24] = TextDrawCreate(505.500000, 329.066650, "LD_SPAC:white"); TextDrawLetterSize(LoginS[24], 0.000000, 0.000000); TextDrawTextSize(LoginS[24], -1.500000, -168.933059); TextDrawAlignment(LoginS[24], 1); TextDrawColor(LoginS[24], -1); TextDrawSetShadow(LoginS[24], 0); TextDrawSetOutline(LoginS[24], 0); TextDrawFont(LoginS[24], 4); LoginS[25] = TextDrawCreate(447.000000, 205.400085, "100/50"); TextDrawLetterSize(LoginS[25], 0.269998, 1.282667); TextDrawAlignment(LoginS[25], 1); TextDrawColor(LoginS[25], -1); TextDrawSetShadow(LoginS[25], 0); TextDrawSetOutline(LoginS[25], 0); TextDrawBackgroundColor(LoginS[25], 51); TextDrawFont(LoginS[25], 2); TextDrawSetProportional(LoginS[25], 1); LoginS[26] = TextDrawCreate(445.500000, 222.333419, "ON DATE"); TextDrawLetterSize(LoginS[26], 0.240499, 1.893666); TextDrawAlignment(LoginS[26], 1); TextDrawColor(LoginS[26], -1); TextDrawSetShadow(LoginS[26], 0); TextDrawSetOutline(LoginS[26], 0); TextDrawBackgroundColor(LoginS[26], 51); TextDrawFont(LoginS[26], 2); TextDrawSetProportional(LoginS[26], 1); LoginS[27] = TextDrawCreate(439.000000, 243.266601, "18/11/2015"); TextDrawLetterSize(LoginS[27], 0.269998, 1.282667); TextDrawAlignment(LoginS[27], 1); TextDrawColor(LoginS[27], -1); TextDrawSetShadow(LoginS[27], 0); TextDrawSetOutline(LoginS[27], 0); TextDrawBackgroundColor(LoginS[27], 51); TextDrawFont(LoginS[27], 2); TextDrawSetProportional(LoginS[27], 1); LoginS[28] = TextDrawCreate(449.500000, 259.733337, "UPTIME"); TextDrawLetterSize(LoginS[28], 0.240499, 1.893666); TextDrawAlignment(LoginS[28], 1); TextDrawColor(LoginS[28], -1); TextDrawSetShadow(LoginS[28], 0); TextDrawSetOutline(LoginS[28], 0); TextDrawBackgroundColor(LoginS[28], 51); TextDrawFont(LoginS[28], 2); TextDrawSetProportional(LoginS[28], 1); LoginS[29] = TextDrawCreate(444.500000, 281.599975, "30 DAYS"); TextDrawLetterSize(LoginS[29], 0.269998, 1.282667); TextDrawAlignment(LoginS[29], 1); TextDrawColor(LoginS[29], -1); TextDrawSetShadow(LoginS[29], 0); TextDrawSetOutline(LoginS[29], 0); TextDrawBackgroundColor(LoginS[29], 51); TextDrawFont(LoginS[29], 2); TextDrawSetProportional(LoginS[29], 1); LoginS[30] = TextDrawCreate(274.000000, 90.999984, "Welcome"); TextDrawLetterSize(LoginS[30], 0.487998, 2.001332); TextDrawAlignment(LoginS[30], 1); TextDrawColor(LoginS[30], -1); TextDrawSetShadow(LoginS[30], 0); TextDrawSetOutline(LoginS[30], 0); TextDrawBackgroundColor(LoginS[30], 51); TextDrawFont(LoginS[30], 2); TextDrawSetProportional(LoginS[30], 1); LoginS[31] = TextDrawCreate(393.000000, 180.233444, "usebox"); TextDrawLetterSize(LoginS[31], 0.000000, 1.603703); TextDrawTextSize(LoginS[31], 283.000000, 0.000000); TextDrawAlignment(LoginS[31], 1); TextDrawColor(LoginS[31], 0); TextDrawUseBox(LoginS[31], true); TextDrawBoxColor(LoginS[31], 102); TextDrawSetShadow(LoginS[31], 0); TextDrawSetOutline(LoginS[31], 0); TextDrawFont(LoginS[31], 0); LoginS[32] = TextDrawCreate(393.000000, 180.233444, "usebox"); TextDrawLetterSize(LoginS[32], 0.000000, 1.603703); TextDrawTextSize(LoginS[32], 283.000000, 0.000000); TextDrawAlignment(LoginS[32], 1); TextDrawColor(LoginS[32], 0); TextDrawUseBox(LoginS[32], true); TextDrawBoxColor(LoginS[32], 102); TextDrawSetShadow(LoginS[32], 0); TextDrawSetOutline(LoginS[32], 0); TextDrawFont(LoginS[32], 0); LoginS[33] = TextDrawCreate(266.000000, 230.999984, "PlayGame"); TextDrawLetterSize(LoginS[33], 0.449999, 1.600000); TextDrawAlignment(LoginS[33], 1); TextDrawColor(LoginS[33], -1); TextDrawSetShadow(LoginS[33], 0); TextDrawSetOutline(LoginS[33], 0); TextDrawBackgroundColor(LoginS[33], 51); TextDrawFont(LoginS[33], 2); TextDrawSetProportional(LoginS[33], 1); LoginS[34] = TextDrawCreate(296.000000, 178.933380, "register"); TextDrawLetterSize(LoginS[34], 0.409999, 1.833330); TextDrawAlignment(LoginS[34], 1); TextDrawColor(LoginS[34], -1); TextDrawSetShadow(LoginS[34], 0); TextDrawSetOutline(LoginS[34], 0); TextDrawBackgroundColor(LoginS[34], 51); TextDrawFont(LoginS[34], 2); TextDrawSetProportional(LoginS[34], 1); TextDrawSetSelectable(LoginS[34], true); LoginS[35] = TextDrawCreate(393.500000, 303.033355, "usebox"); TextDrawLetterSize(LoginS[35], 0.000000, 1.603703); TextDrawTextSize(LoginS[35], 282.500000, 0.000000); TextDrawAlignment(LoginS[35], 1); TextDrawColor(LoginS[35], 0); TextDrawUseBox(LoginS[35], true); TextDrawBoxColor(LoginS[35], 102); TextDrawSetShadow(LoginS[35], 0); TextDrawSetOutline(LoginS[35], 0); TextDrawFont(LoginS[35], 0); LoginS[36] = TextDrawCreate(393.500000, 303.033355, "usebox"); TextDrawLetterSize(LoginS[36], 0.000000, 1.603703); TextDrawTextSize(LoginS[36], 282.500000, 0.000000); TextDrawAlignment(LoginS[36], 1); TextDrawColor(LoginS[36], 0); TextDrawUseBox(LoginS[36], true); TextDrawBoxColor(LoginS[36], 102); TextDrawSetShadow(LoginS[36], 0); TextDrawSetOutline(LoginS[36], 0); TextDrawFont(LoginS[36], 0); LoginS[37] = TextDrawCreate(315.676116, 244.833343, "-"); TextDrawLetterSize(LoginS[37], 0.449999, 1.600000); TextDrawAlignment(LoginS[37], 1); TextDrawColor(LoginS[37], -1); TextDrawSetShadow(LoginS[37], 0); TextDrawSetOutline(LoginS[37], 0); TextDrawBackgroundColor(LoginS[37], 51); TextDrawFont(LoginS[37], 2); TextDrawSetProportional(LoginS[37], 1); LoginS[38] = TextDrawCreate(327.940887, 254.583389, "zone"); TextDrawLetterSize(LoginS[38], 0.449999, 1.600000); TextDrawAlignment(LoginS[38], 1); TextDrawColor(LoginS[38], -1); TextDrawSetShadow(LoginS[38], 0); TextDrawSetOutline(LoginS[38], 0); TextDrawBackgroundColor(LoginS[38], 51); TextDrawFont(LoginS[38], 2); TextDrawSetProportional(LoginS[38], 1); si Imagini / Video (optional): Ati incercat sa rezolvati singur?:da....le-am facut globale ca per player nu apreau
-
Atat, mai departe ma descurc.Multumesc.
-
exact asa am zis si eu la inceput doar ca nu imi dau seama cum sa fac si de aceea aveam nevoie de un model...
-
pai sunt 11 amenzi fiecare cu alt pret: strcat(str, "Motiv\tPret\tPermis\n"); strcat(str, "1.Folosire telefon la volan\t5.000$\tNone\n"); strcat(str, "2.Condus fara centura\t10.000$\tNone\n"); strcat(str, "3.Condus neregulamentar\t25.000$\tConfiscare\n"); strcat(str, "4.Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n"); strcat(str, "5.Conducerea vehiculelor cu roti sparte\t10.000$\tNone\n"); strcat(str, "6.Folosire NOS\t10.000$\tConfiscare\n"); strcat(str, "7.Folosire Hidraulice\t10.000$\tConfiscare\n"); strcat(str, "8.Faruri stinse (dupa ora 21:00)\t10.000$\tNone\n"); strcat(str, "9.Condus sub influenta alcoolului\t20.000$\tConfiscare\n"); strcat(str, "10.Depasirea limitei de viteza cu 10-50 km/h\t10.000$\tNone\n"); strcat(str, "11.Depasirea limitei de viteza cu 50+ km/h\t20.000$\tConfiscare");
-
Nu prea ti-am inteles raspunsul dar nu ar trebui sa fie ceva gen la dialog sa fac mai multe optiuni unde adaug userului care primeste amenda GivePlayerMoney( playerid, -10000 ); si celui care primeste GivePlayerMoney( playerid, 10000 ); ?Amenzile sunt facute in dialog.el doar da click pe ea si userul primeste direct amenda
-
Problema intalnita (descriere):Am facut /ticket pe dialog dar cand dau /ticket si selectez amenda da cu 0.stiu ca este din cauza ca nu am facut dialogul...dar habar n-am cum trebuie facut...Imi poate da cineva un exemplu? Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): CMD:ticket(playerid, params[]) { new amendat, giveplayerid, string[256], sendername[MAX_PLAYER_NAME], giveplayer, moneys, result; if(sscanf(params, "u", amendat)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ticket[PlayerID/PartOfName]"); if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " Nu esti politist!"); return 1; } if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREY, " Nu esti la datorie!"); return 1; } new str[600]; strcat(str, "Motiv\tPret\tPermis\n"); strcat(str, "1.Folosire telefon la volan\t5.000$\tNone\n"); strcat(str, "2.Condus fara centura\t10.000$\tNone\n"); strcat(str, "3.Condus neregulamentar\t25.000$\tConfiscare\n"); strcat(str, "4.Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n"); strcat(str, "5.Conducerea vehiculelor cu roti sparte\t10.000$\tNone\n"); strcat(str, "6.Folosire NOS\t10.000$\tConfiscare\n"); strcat(str, "7.Folosire Hidraulice\t10.000$\tConfiscare\n"); strcat(str, "8.Faruri stinse (dupa ora 21:00)\t10.000$\tNone\n"); strcat(str, "9.Condus sub influenta alcoolului\t20.000$\tConfiscare\n"); strcat(str, "10.Depasirea limitei de viteza cu 10-50 km/h\t10.000$\tNone\n"); strcat(str, "11.Depasirea limitei de viteza cu 50+ km/h\t20.000$\tConfiscare"); ShowPlayerDialog(playerid, 619, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza amenda:", str,"Select", "Cancel"); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pLevel] < 2) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ticket: {FFFFFF}Nu poti da amenda jucatorilor cu level 1!"); format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s", giveplayer, moneys, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Offiterul %s ti-a dat o amenda in valoare de $%d, motiv: %s", sendername, moneys, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Scrie /accept ticket, pentru a plati amenda."); TicketOffer[giveplayerid] = playerid; TicketMoney[giveplayerid] = moneys; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Acel jucator nu este langa tine !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Acel jucator este offline !"); return 1; } return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:da
-
n-am inteles nimic.. doar asta: CMD:vhelp( playerid ){ if(IsPlayerConnected(playerid)) { for(new i=0; i<MAX_VEHICLES; i++) new iString[256]; format(iString,sizeof(iString),"Tip: %s | Pret: $%i | Culori: %i/%i | Inchisa: %s | Cheie: %i | KM: %i | Numar: %i", aVehicleNames, vPrice, vColor1, vColor2, vLocked, pCar1, vKM, vPlate); SendClientMessage(playerid, COLOR_GRAD2,"---------------------------------------------------------[Masini Personale]---------------------------------------------------------"); SendClientMessage(playerid, COLOR_GRAD2,iString); } return 1; }
-
Problema intalnita (descriere):Am facut o comanda /vhelp care sa arate informatii despre masina insa imi arata un semn ciudat in loc de informatii... Ero(area / rile) / warning-(ul / urile):nu sunt.. Liniile de cod / sursa / script-ul(obligatoriu): //========================================[CMD:VHELP]========================================================== CMD:vhelp( playerid ){ if(IsPlayerConnected(playerid)) { new iString[256]; format(iString,sizeof(iString),"Tip: %s | Pret: $%s | Culori: %s/%s | Inchisa: %s | Cheie: %s | KM: %s | Numar: %s", aVehicleNames, vPrice, vColor1, vColor2, vLocked, pCar1, vKM, vPlate); SendClientMessage(playerid, COLOR_GRAD2,"---------------------------------------------------------[Masini Personale]---------------------------------------------------------"); SendClientMessage(playerid, COLOR_GRAD2,iString); } return 1; } Imagini / Video (optional):http://i.imgur.com/NGhq15I.png Ati incercat sa rezolvati singur?:da...