format(nikoopet, sizeof(nikoopet), "NIKO"); format(query, sizeof(query), "SELECT `ImeClana` FROM `organizacije` WHERE `Slot` = '%d' AND `ImeOrganizacije` = '%s'", slot,ImeOrganizacije(PlayerInfo[para1][Lider])); mysql_tquery(mysql, query, "", ""); cache_get_field_content(0, "ImeClana", niko); if(strcmp(niko, nikoopet)) return SCMF(playerid, -1, ""CRVENA"[SA:RP]:"BELA"Neko se vec nalazi na slotu %d!",slot); |
cache_get_field_name(0, "ImeClana", niko, 50);
new string[24]; cache_get_value_name(0, "ImeClana", string);
new clanime[MAX_PLAYER_NAME], nikoopet[MAX_PLAYER_NAME] = "NIKO"; cache_get_field_content(0, "ImeClana", clanime); if(strcmp(clanime,"nikoopet",true) == 0) return SCMF(playerid, -1, ""CRVENA"[SA:RP]:"BELA"Neko se vec nalazi na slotu %d!",slot);
format(query, sizeof(query), "SELECT `ImeClana` FROM `organizacije` WHERE `Slot` = '%d' AND `ImeOrganizacije` = '%s'", slot,ImeOrganizacije(PlayerInfo[para1][Lider])); mysql_tquery(mysql, query, "ProveriSlot", "i", playerid); |
forward ProveriSlot(playerid); public ProveriSlot(playerid) { new clanime[50], nikoopet[MAX_PLAYER_NAME] = "NIKO"; cache_get_field_content(0, "ImeClana", clanime); SlotPrazan[playerid] = 1; if(strcmp(clanime,nikoopet)) return SCM(playerid, -1, ""CRVENA"[SA:RP]:"BELA"Neko se vec nalazi na slotu!"),SlotPrazan[playerid] = 0; return 1; } |