01.08.2015, 18:48
I have created an array and when i goto retrieve the values from the array, everything works fine until i get to a certain value wtf.
here's the array:
Then I loop through them and send the client this message for each row on the array(just for testing)
Here are messages I get:
Everything works correctly until I get to the level part which gives me a value that I have never seen before
here's the array:
Код:
new Items[][] = { {400,520,100,"Landstalker",15}, {424,520,100,"BF Injection",17}, {412,530,100,"Voodoo",23}, {534,530,100,"Remington",34} };
Код:
format(number, sizeof(number),"ID: %d Name: %s Level: %d", Items[idx][0], Items[idx][3], Items[idx][4]); SendClientMessage(playerid, COLOR_GREEN, number);
Код:
"ID: 400 Name: Landstalker Level 97" "ID: 424 Name: BF Injection Level 70" "ID: 412 Name: Voodoo Level 111" "ID: 534 Name: Remington Level 101"