tag mismatch
#1

Errors:
Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11838) : warning 213: tag mismatch
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11809) : warning 204: symbol is assigned a value that is never used: "result"
11838
cache_delete(Handle);

11809
result = mysql_query(Handle, query);

All code
Код:
public LoadBizz()
{
	new i, query[256], index;
	new Cache:result;

	mysql_format(Handle, query, sizeof(query), "SELECT * FROM `bizz` ORDER BY `bizz`.`ID` ASC");
    result = mysql_query(Handle, query);

    while(cache_get_row_count(Handle))
    {
		i++;

        BizzInfo[i][bOwned] = cache_get_field_content_int(i, "Owned");

      	cache_get_field_content(i, "Owner", BizzInfo[i][bOwner]);
     	cache_get_field_content(i, "Message", BizzInfo[i][bMessage]);
      	cache_get_field_content(i, "Extortion", BizzInfo[i][bExtortion]);

        BizzInfo[i][bEntranceX] = cache_get_field_content_float (i, "EntX");
    	BizzInfo[i][bEntranceY] = cache_get_field_content_float (i, "EntY");
        BizzInfo[i][bEntranceZ] = cache_get_field_content_float (i, "EntZ");
        BizzInfo[i][bExitX] = cache_get_field_content_float (i, "ExitX");
    	BizzInfo[i][bExitY] = cache_get_field_content_float (i, "ExitY");
        BizzInfo[i][bExitZ] = cache_get_field_content_float (i, "ExitZ");

        BizzInfo[i][bLevelNeeded] = cache_get_field_content_int(i, "Level");
        BizzInfo[i][bBuyPrice] = cache_get_field_content_int(i, "Price");
        BizzInfo[i][bEntranceCost] = cache_get_field_content_int(i, "EPrice");
        BizzInfo[i][bTill] = cache_get_field_content_int(i, "Till");
        BizzInfo[i][bLocked] = cache_get_field_content_int(i, "Locked");
        BizzInfo[i][bInterior] = cache_get_field_content_int(i, "Interior");
        BizzInfo[i][bProducts] = cache_get_field_content_int(i, "Products");
        BizzInfo[i][bMaxProducts] = cache_get_field_content_int(i, "MaxProducts");
        BizzInfo[i][bPriceProd] = cache_get_field_content_int(i, "ProductPrice");
	}
	cache_delete(Handle);

	printf("[BIZZ]Au fost incarcate %d bizz-uri.Felicitari pentru reusita.[PG-ZONE.RO]", index);
	return 1;
}
Reply
#2

upppppp
Reply
#3

Hi, check this https://sampforum.blast.hk/showthread.php?tid=588110
Reply
#4

PHP код:
cache_delete(resultHandle); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)