Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.
Показано с 1 по 3 из 3
  1. #1
    Аватар для Union
    Пользователь

    Статус
    Оффлайн
    Регистрация
    01.03.2016
    Сообщений
    36
    Репутация:
    0 ±

    Не удаляются PTD

    Это нормально?
    Если я очень быстро создаю и удаляю PTD, то через N-время они вообще перестают удаляться.

    код:

    1. #include <a_samp>
    2. #include <sscanf2>
    3. #include <dc_cmd>
    4.  
    5. #define PTD_MAX_TEST_BOX 25
    6. #define PTD_MAX_TEST_BOX_2 25
    7.  
    8. new PlayerText:PTD_test_box[MAX_PLAYERS][PTD_MAX_TEST_BOX];
    9. new PlayerText:PTD_test_box_2[MAX_PLAYERS][PTD_MAX_TEST_BOX_2];
    10.  
    11. public OnPlayerConnect(playerid)
    12. {
    13. ResetVar(playerid);
    14. return 1;
    15. }
    16.  
    17. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    18. {
    19. if(newkeys & KEY_YES)
    20. {
    21. cmd::showbox(playerid);
    22. return 1;
    23. }
    24. if(newkeys & KEY_NO)
    25. {
    26. cmd::showbox2(playerid);
    27. return 1;
    28. }
    29. return 1;
    30. }
    31.  
    32. new bool:isBox;
    33. new bool:isBox_2;
    34.  
    35. CMD:showbox(playerid)
    36. {
    37. if(isBox_2)
    38. {
    39. isBox_2 = false;
    40. DestroyTestBox2PTD(playerid);
    41. }
    42.  
    43. if(!isBox)
    44. {
    45. isBox = true;
    46. CreateTestBoxPTD(playerid);
    47. ShowTestBoxPTD(playerid);
    48. }
    49. return 1;
    50. }
    51.  
    52. CMD:showbox2(playerid)
    53. {
    54. if(isBox)
    55. {
    56. isBox = false;
    57. DestroyTestBoxPTD(playerid);
    58. }
    59.  
    60. if(!isBox_2)
    61. {
    62. isBox_2 = true;
    63. CreateTestBox2PTD(playerid);
    64. ShowTestBox2PTD(playerid);
    65. }
    66. return 1;
    67. }
    68.  
    69. stock ResetVar(playerid)
    70. {
    71. for(new i = 0; i < PTD_MAX_TEST_BOX; i++)
    72. PTD_test_box[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
    73.  
    74. for(new i = 0; i < PTD_MAX_TEST_BOX_2; i++)
    75. PTD_test_box_2[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
    76. }
    77.  
    78. stock CreateTestBoxPTD(playerid)
    79. {
    80. PTD_test_box[playerid][0] = CreatePlayerTextDraw(playerid, 311.0000, 156.0000, "LD_SPAC:white");
    81. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][0], 24.0000, 28.0000);
    82. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][0], 1);
    83. PlayerTextDrawColor(playerid, PTD_test_box[playerid][0], -1);
    84. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][0], 255);
    85. PlayerTextDrawFont(playerid, PTD_test_box[playerid][0], 4);
    86. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][0], 0);
    87. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][0], 0);
    88. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][0], true);
    89.  
    90. PTD_test_box[playerid][1] = CreatePlayerTextDraw(playerid, 336.0000, 156.0000, "LD_SPAC:white");
    91. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][1], 24.0000, 28.0000);
    92. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][1], 1);
    93. PlayerTextDrawColor(playerid, PTD_test_box[playerid][1], -1);
    94. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][1], 255);
    95. PlayerTextDrawFont(playerid, PTD_test_box[playerid][1], 4);
    96. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][1], 0);
    97. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][1], 0);
    98. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][1], true);
    99.  
    100. PTD_test_box[playerid][2] = CreatePlayerTextDraw(playerid, 361.0000, 156.0000, "LD_SPAC:white");
    101. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][2], 24.0000, 28.0000);
    102. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][2], 1);
    103. PlayerTextDrawColor(playerid, PTD_test_box[playerid][2], -1);
    104. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][2], 255);
    105. PlayerTextDrawFont(playerid, PTD_test_box[playerid][2], 4);
    106. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][2], 0);
    107. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][2], 0);
    108. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][2], true);
    109.  
    110. PTD_test_box[playerid][3] = CreatePlayerTextDraw(playerid, 386.0000, 156.0000, "LD_SPAC:white");
    111. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][3], 24.0000, 28.0000);
    112. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][3], 1);
    113. PlayerTextDrawColor(playerid, PTD_test_box[playerid][3], -1);
    114. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][3], 255);
    115. PlayerTextDrawFont(playerid, PTD_test_box[playerid][3], 4);
    116. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][3], 0);
    117. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][3], 0);
    118. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][3], true);
    119.  
    120. PTD_test_box[playerid][4] = CreatePlayerTextDraw(playerid, 411.0000, 156.0000, "LD_SPAC:white");
    121. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][4], 24.0000, 28.0000);
    122. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][4], 1);
    123. PlayerTextDrawColor(playerid, PTD_test_box[playerid][4], -1);
    124. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][4], 255);
    125. PlayerTextDrawFont(playerid, PTD_test_box[playerid][4], 4);
    126. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][4], 0);
    127. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][4], 0);
    128. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][4], true);
    129.  
    130. PTD_test_box[playerid][5] = CreatePlayerTextDraw(playerid, 311.0000, 185.0000, "LD_SPAC:white");
    131. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][5], 24.0000, 28.0000);
    132. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][5], 1);
    133. PlayerTextDrawColor(playerid, PTD_test_box[playerid][5], -1);
    134. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][5], 255);
    135. PlayerTextDrawFont(playerid, PTD_test_box[playerid][5], 4);
    136. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][5], 0);
    137. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][5], 0);
    138. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][5], true);
    139.  
    140. PTD_test_box[playerid][6] = CreatePlayerTextDraw(playerid, 336.0000, 185.0000, "LD_SPAC:white");
    141. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][6], 24.0000, 28.0000);
    142. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][6], 1);
    143. PlayerTextDrawColor(playerid, PTD_test_box[playerid][6], -1);
    144. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][6], 255);
    145. PlayerTextDrawFont(playerid, PTD_test_box[playerid][6], 4);
    146. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][6], 0);
    147. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][6], 0);
    148. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][6], true);
    149.  
    150. PTD_test_box[playerid][7] = CreatePlayerTextDraw(playerid, 361.0000, 185.0000, "LD_SPAC:white");
    151. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][7], 24.0000, 28.0000);
    152. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][7], 1);
    153. PlayerTextDrawColor(playerid, PTD_test_box[playerid][7], -1);
    154. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][7], 255);
    155. PlayerTextDrawFont(playerid, PTD_test_box[playerid][7], 4);
    156. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][7], 0);
    157. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][7], 0);
    158. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][7], true);
    159.  
    160. PTD_test_box[playerid][8] = CreatePlayerTextDraw(playerid, 386.0000, 185.0000, "LD_SPAC:white");
    161. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][8], 24.0000, 28.0000);
    162. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][8], 1);
    163. PlayerTextDrawColor(playerid, PTD_test_box[playerid][8], -1);
    164. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][8], 255);
    165. PlayerTextDrawFont(playerid, PTD_test_box[playerid][8], 4);
    166. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][8], 0);
    167. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][8], 0);
    168. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][8], true);
    169.  
    170. PTD_test_box[playerid][9] = CreatePlayerTextDraw(playerid, 411.0000, 185.0000, "LD_SPAC:white");
    171. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][9], 24.0000, 28.0000);
    172. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][9], 1);
    173. PlayerTextDrawColor(playerid, PTD_test_box[playerid][9], -1);
    174. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][9], 255);
    175. PlayerTextDrawFont(playerid, PTD_test_box[playerid][9], 4);
    176. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][9], 0);
    177. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][9], 0);
    178. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][9], true);
    179.  
    180. PTD_test_box[playerid][10] = CreatePlayerTextDraw(playerid, 311.0000, 214.0000, "LD_SPAC:white");
    181. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][10], 24.0000, 28.0000);
    182. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][10], 1);
    183. PlayerTextDrawColor(playerid, PTD_test_box[playerid][10], -1);
    184. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][10], 255);
    185. PlayerTextDrawFont(playerid, PTD_test_box[playerid][10], 4);
    186. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][10], 0);
    187. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][10], 0);
    188. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][10], true);
    189.  
    190. PTD_test_box[playerid][11] = CreatePlayerTextDraw(playerid, 336.0000, 214.0000, "LD_SPAC:white");
    191. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][11], 24.0000, 28.0000);
    192. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][11], 1);
    193. PlayerTextDrawColor(playerid, PTD_test_box[playerid][11], -1);
    194. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][11], 255);
    195. PlayerTextDrawFont(playerid, PTD_test_box[playerid][11], 4);
    196. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][11], 0);
    197. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][11], 0);
    198. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][11], true);
    199.  
    200. PTD_test_box[playerid][12] = CreatePlayerTextDraw(playerid, 361.0000, 214.0000, "LD_SPAC:white");
    201. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][12], 24.0000, 28.0000);
    202. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][12], 1);
    203. PlayerTextDrawColor(playerid, PTD_test_box[playerid][12], -1);
    204. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][12], 255);
    205. PlayerTextDrawFont(playerid, PTD_test_box[playerid][12], 4);
    206. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][12], 0);
    207. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][12], 0);
    208. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][12], true);
    209.  
    210. PTD_test_box[playerid][13] = CreatePlayerTextDraw(playerid, 386.0000, 214.0000, "LD_SPAC:white");
    211. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][13], 24.0000, 28.0000);
    212. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][13], 1);
    213. PlayerTextDrawColor(playerid, PTD_test_box[playerid][13], -1);
    214. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][13], 255);
    215. PlayerTextDrawFont(playerid, PTD_test_box[playerid][13], 4);
    216. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][13], 0);
    217. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][13], 0);
    218. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][13], true);
    219.  
    220. PTD_test_box[playerid][14] = CreatePlayerTextDraw(playerid, 411.0000, 214.0000, "LD_SPAC:white");
    221. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][14], 24.0000, 28.0000);
    222. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][14], 1);
    223. PlayerTextDrawColor(playerid, PTD_test_box[playerid][14], -1);
    224. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][14], 255);
    225. PlayerTextDrawFont(playerid, PTD_test_box[playerid][14], 4);
    226. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][14], 0);
    227. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][14], 0);
    228. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][14], true);
    229.  
    230. PTD_test_box[playerid][15] = CreatePlayerTextDraw(playerid, 311.0000, 243.0000, "LD_SPAC:white");
    231. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][15], 24.0000, 28.0000);
    232. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][15], 1);
    233. PlayerTextDrawColor(playerid, PTD_test_box[playerid][15], -1);
    234. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][15], 255);
    235. PlayerTextDrawFont(playerid, PTD_test_box[playerid][15], 4);
    236. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][15], 0);
    237. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][15], 0);
    238. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][15], true);
    239.  
    240. PTD_test_box[playerid][16] = CreatePlayerTextDraw(playerid, 336.0000, 243.0000, "LD_SPAC:white");
    241. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][16], 24.0000, 28.0000);
    242. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][16], 1);
    243. PlayerTextDrawColor(playerid, PTD_test_box[playerid][16], -1);
    244. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][16], 255);
    245. PlayerTextDrawFont(playerid, PTD_test_box[playerid][16], 4);
    246. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][16], 0);
    247. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][16], 0);
    248. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][16], true);
    249.  
    250. PTD_test_box[playerid][17] = CreatePlayerTextDraw(playerid, 361.0000, 243.0000, "LD_SPAC:white");
    251. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][17], 24.0000, 28.0000);
    252. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][17], 1);
    253. PlayerTextDrawColor(playerid, PTD_test_box[playerid][17], -1);
    254. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][17], 255);
    255. PlayerTextDrawFont(playerid, PTD_test_box[playerid][17], 4);
    256. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][17], 0);
    257. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][17], 0);
    258. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][17], true);
    259.  
    260. PTD_test_box[playerid][18] = CreatePlayerTextDraw(playerid, 386.0000, 243.0000, "LD_SPAC:white");
    261. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][18], 24.0000, 28.0000);
    262. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][18], 1);
    263. PlayerTextDrawColor(playerid, PTD_test_box[playerid][18], -1);
    264. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][18], 255);
    265. PlayerTextDrawFont(playerid, PTD_test_box[playerid][18], 4);
    266. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][18], 0);
    267. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][18], 0);
    268. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][18], true);
    269.  
    270. PTD_test_box[playerid][19] = CreatePlayerTextDraw(playerid, 411.0000, 243.0000, "LD_SPAC:white");
    271. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][19], 24.0000, 28.0000);
    272. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][19], 1);
    273. PlayerTextDrawColor(playerid, PTD_test_box[playerid][19], -1);
    274. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][19], 255);
    275. PlayerTextDrawFont(playerid, PTD_test_box[playerid][19], 4);
    276. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][19], 0);
    277. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][19], 0);
    278. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][19], true);
    279.  
    280. PTD_test_box[playerid][20] = CreatePlayerTextDraw(playerid, 311.0000, 272.0000, "LD_SPAC:white");
    281. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][20], 24.0000, 28.0000);
    282. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][20], 1);
    283. PlayerTextDrawColor(playerid, PTD_test_box[playerid][20], -1);
    284. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][20], 255);
    285. PlayerTextDrawFont(playerid, PTD_test_box[playerid][20], 4);
    286. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][20], 0);
    287. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][20], 0);
    288. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][20], true);
    289.  
    290. PTD_test_box[playerid][21] = CreatePlayerTextDraw(playerid, 336.0000, 272.0000, "LD_SPAC:white");
    291. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][21], 24.0000, 28.0000);
    292. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][21], 1);
    293. PlayerTextDrawColor(playerid, PTD_test_box[playerid][21], -1);
    294. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][21], 255);
    295. PlayerTextDrawFont(playerid, PTD_test_box[playerid][21], 4);
    296. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][21], 0);
    297. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][21], 0);
    298. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][21], true);
    299.  
    300. PTD_test_box[playerid][22] = CreatePlayerTextDraw(playerid, 361.0000, 272.0000, "LD_SPAC:white");
    301. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][22], 24.0000, 28.0000);
    302. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][22], 1);
    303. PlayerTextDrawColor(playerid, PTD_test_box[playerid][22], -1);
    304. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][22], 255);
    305. PlayerTextDrawFont(playerid, PTD_test_box[playerid][22], 4);
    306. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][22], 0);
    307. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][22], 0);
    308. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][22], true);
    309.  
    310. PTD_test_box[playerid][23] = CreatePlayerTextDraw(playerid, 386.0000, 272.0000, "LD_SPAC:white");
    311. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][23], 24.0000, 28.0000);
    312. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][23], 1);
    313. PlayerTextDrawColor(playerid, PTD_test_box[playerid][23], -1);
    314. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][23], 255);
    315. PlayerTextDrawFont(playerid, PTD_test_box[playerid][23], 4);
    316. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][23], 0);
    317. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][23], 0);
    318. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][23], true);
    319.  
    320. PTD_test_box[playerid][24] = CreatePlayerTextDraw(playerid, 411.0000, 272.0000, "LD_SPAC:white");
    321. PlayerTextDrawTextSize(playerid, PTD_test_box[playerid][24], 24.0000, 28.0000);
    322. PlayerTextDrawAlignment(playerid, PTD_test_box[playerid][24], 1);
    323. PlayerTextDrawColor(playerid, PTD_test_box[playerid][24], -1);
    324. PlayerTextDrawBackgroundColor(playerid, PTD_test_box[playerid][24], 255);
    325. PlayerTextDrawFont(playerid, PTD_test_box[playerid][24], 4);
    326. PlayerTextDrawSetProportional(playerid, PTD_test_box[playerid][24], 0);
    327. PlayerTextDrawSetShadow(playerid, PTD_test_box[playerid][24], 0);
    328. PlayerTextDrawSetSelectable(playerid, PTD_test_box[playerid][24], true);
    329. }
    330.  
    331. stock ShowTestBoxPTD(playerid)
    332. {
    333. for(new i = 0; i < PTD_MAX_TEST_BOX; i++)
    334. PlayerTextDrawShow(playerid, PTD_test_box[playerid][i]);
    335. }
    336.  
    337. stock DestroyTestBoxPTD(playerid)
    338. {
    339. for(new i = 0; i < PTD_MAX_TEST_BOX; i++)
    340. {
    341. //PlayerTextDrawHide(playerid, PTD_test_box[playerid][i]);
    342. PlayerTextDrawDestroy(playerid, PTD_test_box[playerid][i]);
    343. PTD_test_box[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
    344. }
    345. }
    346.  
    347. stock CreateTestBox2PTD(playerid)
    348. {
    349. PTD_test_box_2[playerid][0] = CreatePlayerTextDraw(playerid, 138.0000, 155.0000, "LD_SPAC:white");
    350. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][0], 24.0000, 28.0000);
    351. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][0], 1);
    352. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][0], 255);
    353. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][0], 255);
    354. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][0], 4);
    355. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][0], 0);
    356. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][0], 0);
    357. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][0], true);
    358.  
    359. PTD_test_box_2[playerid][1] = CreatePlayerTextDraw(playerid, 163.0000, 155.0000, "LD_SPAC:white");
    360. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][1], 24.0000, 28.0000);
    361. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][1], 1);
    362. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][1], 255);
    363. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][1], 255);
    364. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][1], 4);
    365. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][1], 0);
    366. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][1], 0);
    367. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][1], true);
    368.  
    369. PTD_test_box_2[playerid][2] = CreatePlayerTextDraw(playerid, 188.0000, 155.0000, "LD_SPAC:white");
    370. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][2], 24.0000, 28.0000);
    371. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][2], 1);
    372. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][2], 255);
    373. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][2], 255);
    374. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][2], 4);
    375. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][2], 0);
    376. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][2], 0);
    377. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][2], true);
    378.  
    379. PTD_test_box_2[playerid][3] = CreatePlayerTextDraw(playerid, 213.0000, 155.0000, "LD_SPAC:white");
    380. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][3], 24.0000, 28.0000);
    381. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][3], 1);
    382. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][3], 255);
    383. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][3], 255);
    384. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][3], 4);
    385. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][3], 0);
    386. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][3], 0);
    387. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][3], true);
    388.  
    389. PTD_test_box_2[playerid][4] = CreatePlayerTextDraw(playerid, 238.0000, 155.0000, "LD_SPAC:white");
    390. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][4], 24.0000, 28.0000);
    391. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][4], 1);
    392. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][4], 255);
    393. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][4], 255);
    394. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][4], 4);
    395. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][4], 0);
    396. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][4], 0);
    397. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][4], true);
    398.  
    399. PTD_test_box_2[playerid][5] = CreatePlayerTextDraw(playerid, 138.0000, 184.0000, "LD_SPAC:white");
    400. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][5], 24.0000, 28.0000);
    401. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][5], 1);
    402. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][5], 255);
    403. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][5], 255);
    404. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][5], 4);
    405. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][5], 0);
    406. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][5], 0);
    407. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][5], true);
    408.  
    409. PTD_test_box_2[playerid][6] = CreatePlayerTextDraw(playerid, 163.0000, 184.0000, "LD_SPAC:white");
    410. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][6], 24.0000, 28.0000);
    411. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][6], 1);
    412. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][6], 255);
    413. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][6], 255);
    414. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][6], 4);
    415. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][6], 0);
    416. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][6], 0);
    417. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][6], true);
    418.  
    419. PTD_test_box_2[playerid][7] = CreatePlayerTextDraw(playerid, 188.0000, 184.0000, "LD_SPAC:white");
    420. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][7], 24.0000, 28.0000);
    421. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][7], 1);
    422. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][7], 255);
    423. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][7], 255);
    424. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][7], 4);
    425. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][7], 0);
    426. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][7], 0);
    427. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][7], true);
    428.  
    429. PTD_test_box_2[playerid][8] = CreatePlayerTextDraw(playerid, 213.0000, 184.0000, "LD_SPAC:white");
    430. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][8], 24.0000, 28.0000);
    431. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][8], 1);
    432. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][8], 255);
    433. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][8], 255);
    434. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][8], 4);
    435. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][8], 0);
    436. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][8], 0);
    437. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][8], true);
    438.  
    439. PTD_test_box_2[playerid][9] = CreatePlayerTextDraw(playerid, 238.0000, 184.0000, "LD_SPAC:white");
    440. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][9], 24.0000, 28.0000);
    441. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][9], 1);
    442. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][9], 255);
    443. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][9], 255);
    444. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][9], 4);
    445. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][9], 0);
    446. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][9], 0);
    447. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][9], true);
    448.  
    449. PTD_test_box_2[playerid][10] = CreatePlayerTextDraw(playerid, 138.0000, 213.0000, "LD_SPAC:white");
    450. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][10], 24.0000, 28.0000);
    451. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][10], 1);
    452. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][10], 255);
    453. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][10], 255);
    454. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][10], 4);
    455. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][10], 0);
    456. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][10], 0);
    457. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][10], true);
    458.  
    459. PTD_test_box_2[playerid][11] = CreatePlayerTextDraw(playerid, 163.0000, 213.0000, "LD_SPAC:white");
    460. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][11], 24.0000, 28.0000);
    461. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][11], 1);
    462. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][11], 255);
    463. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][11], 255);
    464. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][11], 4);
    465. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][11], 0);
    466. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][11], 0);
    467. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][11], true);
    468.  
    469. PTD_test_box_2[playerid][12] = CreatePlayerTextDraw(playerid, 188.0000, 213.0000, "LD_SPAC:white");
    470. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][12], 24.0000, 28.0000);
    471. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][12], 1);
    472. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][12], 255);
    473. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][12], 255);
    474. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][12], 4);
    475. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][12], 0);
    476. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][12], 0);
    477. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][12], true);
    478.  
    479. PTD_test_box_2[playerid][13] = CreatePlayerTextDraw(playerid, 213.0000, 213.0000, "LD_SPAC:white");
    480. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][13], 24.0000, 28.0000);
    481. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][13], 1);
    482. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][13], 255);
    483. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][13], 255);
    484. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][13], 4);
    485. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][13], 0);
    486. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][13], 0);
    487. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][13], true);
    488.  
    489. PTD_test_box_2[playerid][14] = CreatePlayerTextDraw(playerid, 238.0000, 213.0000, "LD_SPAC:white");
    490. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][14], 24.0000, 28.0000);
    491. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][14], 1);
    492. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][14], 255);
    493. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][14], 255);
    494. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][14], 4);
    495. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][14], 0);
    496. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][14], 0);
    497. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][14], true);
    498.  
    499. PTD_test_box_2[playerid][15] = CreatePlayerTextDraw(playerid, 138.0000, 242.0000, "LD_SPAC:white");
    500. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][15], 24.0000, 28.0000);
    501. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][15], 1);
    502. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][15], 255);
    503. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][15], 255);
    504. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][15], 4);
    505. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][15], 0);
    506. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][15], 0);
    507. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][15], true);
    508.  
    509. PTD_test_box_2[playerid][16] = CreatePlayerTextDraw(playerid, 163.0000, 242.0000, "LD_SPAC:white");
    510. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][16], 24.0000, 28.0000);
    511. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][16], 1);
    512. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][16], 255);
    513. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][16], 255);
    514. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][16], 4);
    515. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][16], 0);
    516. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][16], 0);
    517. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][16], true);
    518.  
    519. PTD_test_box_2[playerid][17] = CreatePlayerTextDraw(playerid, 188.0000, 242.0000, "LD_SPAC:white");
    520. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][17], 24.0000, 28.0000);
    521. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][17], 1);
    522. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][17], 255);
    523. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][17], 255);
    524. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][17], 4);
    525. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][17], 0);
    526. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][17], 0);
    527. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][17], true);
    528.  
    529. PTD_test_box_2[playerid][18] = CreatePlayerTextDraw(playerid, 213.0000, 242.0000, "LD_SPAC:white");
    530. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][18], 24.0000, 28.0000);
    531. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][18], 1);
    532. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][18], 255);
    533. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][18], 255);
    534. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][18], 4);
    535. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][18], 0);
    536. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][18], 0);
    537. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][18], true);
    538.  
    539. PTD_test_box_2[playerid][19] = CreatePlayerTextDraw(playerid, 238.0000, 242.0000, "LD_SPAC:white");
    540. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][19], 24.0000, 28.0000);
    541. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][19], 1);
    542. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][19], 255);
    543. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][19], 255);
    544. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][19], 4);
    545. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][19], 0);
    546. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][19], 0);
    547. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][19], true);
    548.  
    549. PTD_test_box_2[playerid][20] = CreatePlayerTextDraw(playerid, 138.0000, 271.0000, "LD_SPAC:white");
    550. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][20], 24.0000, 28.0000);
    551. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][20], 1);
    552. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][20], 255);
    553. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][20], 255);
    554. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][20], 4);
    555. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][20], 0);
    556. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][20], 0);
    557. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][20], true);
    558.  
    559. PTD_test_box_2[playerid][21] = CreatePlayerTextDraw(playerid, 163.0000, 271.0000, "LD_SPAC:white");
    560. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][21], 24.0000, 28.0000);
    561. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][21], 1);
    562. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][21], 255);
    563. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][21], 255);
    564. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][21], 4);
    565. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][21], 0);
    566. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][21], 0);
    567. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][21], true);
    568.  
    569. PTD_test_box_2[playerid][22] = CreatePlayerTextDraw(playerid, 188.0000, 271.0000, "LD_SPAC:white");
    570. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][22], 24.0000, 28.0000);
    571. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][22], 1);
    572. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][22], 255);
    573. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][22], 255);
    574. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][22], 4);
    575. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][22], 0);
    576. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][22], 0);
    577. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][22], true);
    578.  
    579. PTD_test_box_2[playerid][23] = CreatePlayerTextDraw(playerid, 213.0000, 271.0000, "LD_SPAC:white");
    580. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][23], 24.0000, 28.0000);
    581. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][23], 1);
    582. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][23], 255);
    583. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][23], 255);
    584. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][23], 4);
    585. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][23], 0);
    586. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][23], 0);
    587. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][23], true);
    588.  
    589. PTD_test_box_2[playerid][24] = CreatePlayerTextDraw(playerid, 238.0000, 271.0000, "LD_SPAC:white");
    590. PlayerTextDrawTextSize(playerid, PTD_test_box_2[playerid][24], 24.0000, 28.0000);
    591. PlayerTextDrawAlignment(playerid, PTD_test_box_2[playerid][24], 1);
    592. PlayerTextDrawColor(playerid, PTD_test_box_2[playerid][24], 255);
    593. PlayerTextDrawBackgroundColor(playerid, PTD_test_box_2[playerid][24], 255);
    594. PlayerTextDrawFont(playerid, PTD_test_box_2[playerid][24], 4);
    595. PlayerTextDrawSetProportional(playerid, PTD_test_box_2[playerid][24], 0);
    596. PlayerTextDrawSetShadow(playerid, PTD_test_box_2[playerid][24], 0);
    597. PlayerTextDrawSetSelectable(playerid, PTD_test_box_2[playerid][24], true);
    598.  
    599. }
    600.  
    601. stock ShowTestBox2PTD(playerid)
    602. {
    603. for(new i = 0; i < PTD_MAX_TEST_BOX_2; i++)
    604. PlayerTextDrawShow(playerid, PTD_test_box_2[playerid][i]);
    605. }
    606.  
    607. stock DestroyTestBox2PTD(playerid)
    608. {
    609. for(new i = 0; i < PTD_MAX_TEST_BOX_2; i++)
    610. {
    611. //PlayerTextDrawHide(playerid, PTD_test_box_2[playerid][i]);
    612. PlayerTextDrawDestroy(playerid, PTD_test_box_2[playerid][i]);
    613. PTD_test_box_2[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
    614. }
    615. }
    Последний раз редактировалось Union; 18.07.2020 в 11:41.

  2. #2
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    Очень странный код.

    isBox во всех проверках проверяется на нулевое значение, а при создании текстдрава в /showbox ты присваиваешь для isBox единицу и больше нигде переменную не обнуляешь. Как итог - текстдрав создастся только 1 раз.

    isBox_2 во всех проверках так же проверяется на нулевое значение, но её значение ты и не меняешь нигде.

    Даже если не пытаться представлять поведение кода при его обработке, уже видно, что он будет работать не очень корректно.
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  3. #3
    Аватар для Union
    Пользователь

    Статус
    Оффлайн
    Регистрация
    01.03.2016
    Сообщений
    36
    Репутация:
    0 ±
    // del

    - - - Добавлено - - -

    Мда... Я виноват))) "Из разряда написал и не протестил" этот говно код))) Ща все с нуля переписал, и все работает как надо.

    Оригинальный код(инвентаря) не стал кидать, так как там более 2к строк кода.
    Последний раз редактировалось Union; 18.07.2020 в 11:38.

 

 

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •