cache_get_field_content_int(0, \"oszlop\");
\"SELECT ID FROM Tabla WHERE Number = \'2\'\"
stock Kocsibetolt(vehicleid){mysql_format(kapcs, query, 2048, \"SELECT * FROM jarmuvek\");mysql_query(kapcs, query); VehicleInfo[vehicleid][vID] = cache_get_field_content_int(0, \"id\");VehicleInfo[vehicleid][vPosx] = cache_get_field_content_float(0, \"posx\");VehicleInfo[vehicleid][vPosy] = cache_get_field_content_float(0, \"posy\");VehicleInfo[vehicleid][vPosz] = cache_get_field_content_float(0, \"posz\");VehicleInfo[vehicleid][vColor1] = cache_get_field_content_int(0, \"color1\");VehicleInfo[vehicleid][vColor2] = cache_get_field_content_int(0, \"color2\");VehicleInfo[vehicleid][vHP] = cache_get_field_content_int(0, \"hp\");VehicleInfo[vehicleid][vAzonositoID] = cache_get_field_content_int(0, \"azonositoid\");cache_get_field_content(0, \"nev\", VehicleInfo[vehicleid][vTulaj]);cache_get_field_content(0, \"nev\", VehicleInfo[vehicleid][vRendszam]);CreateVehicle(VehicleInfo[vehicleid][vID], VehicleInfo[vehicleid][vPosx], VehicleInfo[vehicleid][vPosy], VehicleInfo[vehicleid][vPosz], 0, VehicleInfo[vehicleid][vColor1], VehicleInfo[vehicleid][vColor2], -1);SetVehicleNumberPlate(vehicleid, VehicleInfo[vehicleid][vRendszam]);return 1;}
for(new i = 0; i < 2000; i++){Kocsibetolt(i);}
stock Kocsibetolt(){ mysql_format(kapcs, query, 2048, \"SELECT * FROM jarmuvek\"); mysql_query(kapcs, query); for(new i; i < cache_num_rows(); ++i) { VehicleInfo[vehicleid][vID] = cache_get_field_content_int(i, \"id\"); // ...
public JatekosBelep(playerid){new sorok_szama = cache_get_row_count();if(sorok_szama == 0){ SendClientMessage(playerid, COLOR_RED, \"(( Sikertelen bejelentkezési kísérlet! ))\");ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, \"Bejelentkezés\", \"{FFFFFF}Üdv a {00BFFF}LaserRPG {FFFFFF}szerverén!\\n\\nÍrd be a jelszavad és lépj be!\", \"Login\", \"Exit\");}else{gPlayerLogged[playerid] = 1;PlayerInfo[playerid][Admin] = cache_get_field_content_int(0,\"admin\");PlayerInfo[playerid][Haz] = cache_get_field_content_int(0, \"haz\");PlayerInfo[playerid][skin] = cache_get_field_content_int(0, \"skin\");PlayerInfo[playerid][Penz] = cache_get_field_content_int(0, \"penz\");PlayerInfo[playerid][serverKezdoSpawn] = cache_get_field_content_int(0, \"serverkezdospawn\");PlayerInfo[playerid][Allampolgarsag] = cache_get_field_content_int(0, \"allampolgarsag\");PlayerInfo[playerid][Year] = cache_get_field_content_int(0, \"year\");PlayerInfo[playerid][Month] = cache_get_field_content_int(0, \"month\");PlayerInfo[playerid][Day] = cache_get_field_content_int(0, \"day\");PlayerInfo[playerid][Nem] = cache_get_field_content_int(0, \"nem\");cache_get_field_content(0, \"nev\", PlayerInfo[playerid][szemelyiSzam]);if(PlayerInfo[playerid][serverKezdoSpawn] == 1){ SendClientMessage(playerid,COLOR_GREEN, \"(( Sikeresen bejelentkeztél! ))\"); SendClientMessage(playerid,COLOR_GREEN, \"(( Üdvözlünk a szerveren! Jó játékot kíván a LaserRPG Admin Team! ))\"); TogglePlayerSpectating(playerid, false); SetCameraBehindPlayer(playerid); cmd_szemelyigeneral(playerid); KezdoSpawn(playerid); PlayerInfo[playerid][serverKezdoSpawn] = 0; mysql_format(kapcs, query, 2048, \"UPDATE jatekosok SET serverkezdospawn = 0\"); mysql_query(kapcs, query);}else{ SendClientMessage(playerid,COLOR_GREEN, \"(( Sikeresen bejelentkeztél! ))\"); TogglePlayerSpectating(playerid, false); SetCameraBehindPlayer(playerid); UjSpawn(playerid);}}return 1;}
if(dialogid == 1000){if(response){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); mysql_format(kapcs, query, 256, \"SELECT * FROM jatekosok WHERE nev=\'%e\' AND jelszo=SHA1(\'%e\')\", name, inputtext); mysql_tquery(kapcs, query, \"JatekosBelep\", \"d\", playerid);}else{ SendClientMessage(playerid, COLOR_WARNING, \"(( Kicket választottad! ))\"); UjKick(playerid);}}