Search the Community
Showing results for tags 'tlačitko'.
-
if(!strcmp(cmdtext, "/s", true)) { if(IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); GetVehiclePos(vehicleid, posX[playerid], posY[playerid], posZ[playerid]); GetVehicleZAngle(vehicleid, posA[playerid]); } else { GetPlayerPos(playerid, posX[playerid], posY[playerid], posZ[playerid]); GetPlayerFacingAngle(playerid, posA[playerid]); } Interior[playerid] = GetPlayerInterior(playerid); VirtualWorld[playerid] = GetPlayerVirtualWorld(playerid); SendClientMessage(playerid, -1, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} You have saved your position"); SendClientMessage(playerid, -1, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} Type {3399FF}/r {FFFFFF}or press {3399FF}Y {FFFFFF}to load your position"); Saved[playerid] = 1; return 1; } if(!strcmp(cmdtext, "/r", true)) { if(Saved[playerid] == 1) { if(IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid, posX[playerid], posY[playerid], posZ[playerid]); SetVehicleZAngle(vehicleid, posA[playerid]); LinkVehicleToInterior(vehicleid, Interior[playerid]); SetVehicleVirtualWorld(vehicleid, VirtualWorld[playerid]); } else { SetPlayerPos(playerid, posX[playerid], posY[playerid], posZ[playerid]); SetPlayerFacingAngle(playerid, posA[playerid]); SetPlayerInterior(playerid, Interior[playerid]); SetPlayerVirtualWorld(playerid, VirtualWorld[playerid]); } SendClientMessage(playerid, -1, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} You have loaded your position"); } else { SendClientMessage(playerid, -1, "{FFFFFF}[{FF0000}Aw{FFFFFF}]{FF0000}: {FFFFFF} You cant do that since you have not saved any positions yet"); SendClientMessage(playerid, -1, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} Type {3399FF}/s {FFFFFF}to save a position"); } return 1; } ahoj potreboval bych pomoct jak muzu udelat tak abych mohl tlacitko ''Y'' pouzivat jako to /r jakoze vratit na ulozenou pozici kdyz jsem to zkousel if(newkeys == KEY_YES) { vlozil jsem funkci /r } tak mi to nahazelo hodne chyb :/
-
Zdravím vás všechny. Jsem tu z prosbou právě na vás protože v HTML se zdokonaluju a teď bych potřeboval trošku poradit. Mám dotaz jak upravit funkci/tlačitko Submit takže jak to myslím ? Ukázka: Ten Vzhled tipuju že by se udělal asi takhle: #ctverec { line-height:30px; background-color:#eeeeee; height:100px; width:100px; float:center; padding:5px; } Ale nevím co přidat dál aby to nahrazovalo to tlačítko SUBMIT Díky moc za pomoc¨.