WARNING IN COMPILER LAST
#1

Helllooo. I'v update to last version of compiler Zeex and i recived this errors:

Quote:

D:\scoala proiecte\My Work\gamemodes\xyz.pwn(22365) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
D:\scoala proiecte\My Work\gamemodes\xyz.pwn(22366) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
D:\scoala proiecte\My Work\gamemodes\xyz.pwn(22367) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
D:\scoala proiecte\My Work\gamemodes\xyz.pwn(2236 : warning 213: tag mismatch: expected tag none ("_"), but found "Float"

Quote:

forward LoadxSafes();
public LoadxSafes()
{
new rows = cache_num_rows();
new id, loaded;
if(rows)
{
while(loaded < rows)
{
cache_get_field_content_int(loaded, "ID", id);
cache_get_field_content_float(loaded, "X", xSafe[id][safe_Pos][0]);
cache_get_field_content_float(loaded, "Y", xSafe[id][safe_Pos][1]);
cache_get_field_content_float(loaded, "Z", xSafe[id][safe_Pos][2]);
cache_get_field_content_float(loaded, "A", xSafe[id][safe_Pos][3]);


xSafe[id][safe_Obj] = CreateObject(2332, xSafe[id][safe_Pos][0], xSafe[id][safe_Pos][1], xSafe[id][safe_Pos][2], 0.0, 0.0, xSafe[id][safe_Pos][3]);

Iter_Add(xSafes, id);
loaded++;
}
}
printf("[xRobbery] %d kasa yuklendi.", loaded);
return 1;
}

aND I HAVE
Quote:

new Floatafe_Pos[4];

Reply
#2

Quote:
Originally Posted by Belengher
Посмотреть сообщение
Helllooo. I'v update to last version of compiler Zeex and i recived this errors:





aND I HAVE
You seem to have declared "safe_pos" as seperate array, but you use as index for the "xSafe" array.
It should be part of the enum declared for the "xSafe" array, not a seperate array.
Reply
#3

Quote:
Originally Posted by NaS
Посмотреть сообщение
You seem to have declared "safe_pos" as seperate array, but you use as index for the "xSafe" array.
It should be part of the enum declared for the "xSafe" array, not a seperate array.


Quote:

enum safe_data
{
safe_Obj,
safe_BosObj,
safe_Timer,
safe_Sure,
Text3Dafe_Label,
Floatafe_Pos[4],
safe_Progress,
safe_Durum
}
new xSafe[MAX_SAFE][safe_data];

How??
Reply
#4

turn this:

Код:
cache_get_field_content_float(loaded, "A", xSafe[id][safe_Pos][3]);
into this:

Код:
cache_get_field_content_float(loaded, "A", _:xSafe[id][safe_Pos][3]);
Reply
#5

What's the data type of the X, Y, Z and A columns in your database structure?
Reply
#6

Quote:
Originally Posted by Mobtiesgangsa
Посмотреть сообщение
turn this:

Код:
cache_get_field_content_float(loaded, "A", xSafe[id][safe_Pos][3]);
into this:

Код:
cache_get_field_content_float(loaded, "A", _:xSafe[id][safe_Pos][3]);
Thank you, this work!

Quote:
Originally Posted by Kane_
Посмотреть сообщение
What's the data type of the X, Y, Z and A columns in your database structure?
Thank you, but works this: "cache_get_field_content_float(loaded, "A", _Safe[id][safe_Pos][3]);"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)