Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - IceBlood

Oldalak: 1 [2]
16
Segítségkérés / MySQL Adatbázis hiba
« Dátum: 2014. március 05. - 15:31:41 »
Nem jó szóval nekem aval van probléma hogy nem akkar létrehozni 1 karaktert sem :( belépek szeróba és nem hozzá létre a karaktert be íroom a jelszót és azt írja ki hogy még nincs karaktered és a konzolba pedig azt írja hogy Sikeresen létrehoza egy karakter

17
Segítségkérés / MySQL Adatbázis hiba
« Dátum: 2014. március 05. - 15:05:53 »
Localhostos cucc
//
 
#define SQL_HOST \"localhost\"
#define SQL_USER \"root\"
#define SQL_PASS \"\"
#define SQL_DB \"rpg\"
//
MySQL
//
forward ConnectMySQL();
public ConnectMySQL()
{
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS))
{
printf(\"[MYSQL]: Conectare la `%s` a avut succes!\",SQL_DB);
}
else
{
  printf(\"[MYSQL]: [ERROR]: Conectare la `%s` a esuat!\",SQL_DB);
}
return 1;
}
 
//és a regisztárcio
//
public MySQLCreateAccount(newplayersname[], newpassword[], playerid)
{
new query[182];
new sqlplyname[182];
new sqlpassword[182];
mysql_real_escape_string(newplayersname, sqlplyname);
mysql_real_escape_string(newpassword, sqlpassword);
format(query, sizeof(query), \"INSERT INTO players (Name, Password) VALUES (\'%s\', \'%s\')\", sqlplyname, sqlpassword);
mysql_query(query);
Registerr[playerid] = 2;
print(\"[MySQL]: Un nou cont a fost creat in baza de date!(..)01\");
mysql_free_result();
print(\"[MySQL]: Un nou cont a fost creat in baza de date!(..)02\");
//mysql_free_result();
new newplayersid = MySQLCheckAccount(newplayersname);
if (newplayersid != 0)
{
return newplayersid;
}
return 0;
}

18
Segítségkérés / MySQL Adatbázis hiba
« Dátum: 2014. március 05. - 14:42:46 »
Nem egy román módrol van szó mert írták kommentbe hogy jó a mód

19
Segítségkérés / MySQL Adatbázis hiba
« Dátum: 2014. március 05. - 14:23:57 »
Üdv, van egy szeróm ami mySQL es de az adatbázisal valami gond lehet a szeró minden elindul csak nem akkarja megcsinálni a regisztráciot ezt írja ki hogy \"Sikeresen létre lett hoza egy karakter\"02,01.\"Helyesen írtam be a phpmyadmin adatokat

20
Segítségkérés / Comp
« Dátum: 2014. február 09. - 06:25:08 »
Idézetet írta: ZyZu. date=1391872799\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46362\" data-ipsquote-contentclass=\"forums_Topic
Lenne egy apró kérdésem. Hogyan raktad be a szerverbe? FS vagy GM?
 
FS

21
Segítségkérés / Comp
« Dátum: 2014. február 08. - 07:04:23 »
Üdv találtam a netten egy comp scriptet de nem akar csatolni rá object ha valaki tud pls segítsen  :wall:
Itt a script:
 
#include <a_samp>
#include \"../include/gl_common.inc\" // for PlaySoundForPlayersInRange()
#define NUM_SHIP_ROUTE_POINTS   25
#define SHIP_OBJECT_ID          10771 // pirate ship
#define SHIP_SKULL_ATTACH       10770
#define SHIP_SKULL_ATTACHH      11145 //ez az 1 object
#define SHIP_SKULL_ATTACHHH     11146//ez az 2 object
#define SHIP_SKULL_ATTACHHHH    11149//ez az 3 object
#define SHIP_RAILS_ATTACH       10772//ez az 4 object
#define SHIP_LINES_ATTACH       11148//ez az 5 object
#define SHIP_MOVE_SPEED         10.0
#define SHIP_DRAW_DISTANCE      800.0
// Pirate ship route points (position/rotation)
new Float:gShipRoutePoints[NUM_SHIP_ROUTE_POINTS][6] = {
{-2389.81, 1434.84, 13.51,   0.00, 0.0, -87.36},
{-2319.54, 1450.75, 13.91,   1.0, 0.0, -71.70},
{-2245.87, 1479.80, 14.21,   5.00, 0.0, -63.84},
{-2168.53, 1535.31, 15.73,   1.00, 0.0, -50.76},
{-2096.43, 1634.13, 15.73,   0.00, 0.0, -36.60},
{-2036.11, 1734.57, 15.27,   -1.00, 0.0, -20.22},
{-2018.20, 1841.61, 15.27,   -5.00, 0.00, -4.86},
{-2043.70, 1936.95, 15.27,   -1.00, 0.00, 25.32},
{-2104.07, 2023.54, 12.78,   0.00, 0.00, 49.14},
{-2206.40, 2065.64, 16.76,   1.00, 0.00, 73.32},
{-2298.24, 2070.62, 14.59,   5.00, 0.00, 91.62},
{-2412.24, 2067.55, 14.59,   1.00, 0.00, 91.62},
{-2528.28, 2057.22, 12.30,   0.00, 0.00, 99.78},
{-2626.64, 2032.14, 17.04,   -1.00, 0.00, 106.98},
{-2727.60, 1996.95, 15.36,   -5.00, 0.00, 106.98},
{-2808.88, 1953.08, 15.36,   -1.00, 0.00, 121.62},
{-2886.19, 1876.19, 16.68,   0.00, 0.00, 143.16},
{-2911.09, 1782.21, 16.68,   -1.00, 0.00, 173.34},
{-2898.36, 1678.83, 14.88,   0.00, 0.00, 194.58},
{-2851.29, 1601.46, 16.13,   1.00, 0.00, 228.42},
{-2760.72, 1557.18, 16.13,   0.00, 0.00, 257.52},
{-2665.41, 1535.22, 16.13,   -1.00, 0.00, 257.52},
{-2589.06, 1509.08, 16.13,   0.00, 0.00, 239.88},
{-2517.74, 1463.39, 14.59,   1.00, 0.00, 243.78},
{-2456.12, 1441.11, 14.59,   0.00, 0.00, 254.76}
};
 
new gShipCurrentPoint = 1; // current route point the ship is at
// SA-MP objects
new gMainShipObjectId;
new gShipSkullAttachment[4];
new gShipRailsAttachment;
new gShipLinesAttachment;
forward StartMovingTimer();
//-------------------------------------------------
public StartMovingTimer()
{
MoveObject(gMainShipObjectId,gShipRoutePoints[gShipCurrentPoint][0],
    gShipRoutePoints[gShipCurrentPoint][1],
    gShipRoutePoints[gShipCurrentPoint][2],
    SHIP_MOVE_SPEED / 4.0, // bit slower for the first point
    gShipRoutePoints[gShipCurrentPoint][3],
    gShipRoutePoints[gShipCurrentPoint][4],
    gShipRoutePoints[gShipCurrentPoint][5]);
}
//-------------------------------------------------
public OnFilterScriptInit()
{
gMainShipObjectId = CreateObject(SHIP_OBJECT_ID, gShipRoutePoints[0][0], gShipRoutePoints[0][1], gShipRoutePoints[0][2],
gShipRoutePoints[0][3], gShipRoutePoints[0][4], gShipRoutePoints[0][5], SHIP_DRAW_DISTANCE);
gShipSkullAttachment[0] = CreateObject(SHIP_SKULL_ATTACH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipSkullAttachment[0], gMainShipObjectId, -1354.4688, 493.7500, 38.6797, 356.8584, 0.0000, 3.1416);
gShipSkullAttachment[1] = CreateObject(SHIP_SKULL_ATTACHH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipSkullAttachment[1], gMainShipObjectId, -1420.5781, 501.2969, 4.2578, 0.0000, 0.0000, 0.0000);
gShipSkullAttachment[2] = CreateObject(SHIP_SKULL_ATTACHHH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipSkullAttachment[2], gMainShipObjectId, -1366.6875, 501.8516, 12.2891, 0.0000, 0.0000, 0.0000);
gShipSkullAttachment[3] = CreateObject(SHIP_SKULL_ATTACHHHH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipSkullAttachment[3], gMainShipObjectId, -1363.7734, 496.0938, 11.9844, 356.8584, 0.0000, 3.1416);
gShipRailsAttachment = CreateObject(SHIP_RAILS_ATTACH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipRailsAttachment, gMainShipObjectId, -1356.3516, 501.1172, 17.2734, 356.8584, 0.0000, 3.1416);
gShipLinesAttachment = CreateObject(SHIP_LINES_ATTACH, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, SHIP_DRAW_DISTANCE);
AttachObjectToObject(gShipLinesAttachment, gMainShipObjectId, -1366.6875, 501.2969, 12.8828, 0.0000, 0.0000, 0.0000);
SetTimer(\"StartMovingTimer\",30*1000,0); // pause at route 0 for 30 seconds
return 1;
}
//-------------------------------------------------
public OnFilterScriptExit()
{
new x=0;
    DestroyObject(gMainShipObjectId);
x=0;
while(x != 4) {
    DestroyObject(gShipSkullAttachment
  • );

x++;
}
DestroyObject(gShipRailsAttachment);
DestroyObject(gShipLinesAttachment);
return 1;
}
//-------------------------------------------------
public OnObjectMoved(objectid)
{
    if(objectid != gMainShipObjectId) return 0;
   
if(gShipCurrentPoint > 0 && !(gShipCurrentPoint % 3)) {
    // play some seagulls audio every 3 points
PlaySoundForPlayersInRange(6200, 100.0, gShipRoutePoints[gShipCurrentPoint][0],
gShipRoutePoints[gShipCurrentPoint][1],
gShipRoutePoints[gShipCurrentPoint][2]);
}
    gShipCurrentPoint++;
   
    if(gShipCurrentPoint == NUM_SHIP_ROUTE_POINTS) {
gShipCurrentPoint = 0;
         MoveObject(gMainShipObjectId,gShipRoutePoints[gShipCurrentPoint][0],
        gShipRoutePoints[gShipCurrentPoint][1],
        gShipRoutePoints[gShipCurrentPoint][2],
        SHIP_MOVE_SPEED / 4.0, // slower for the last route
        gShipRoutePoints[gShipCurrentPoint][3],
        gShipRoutePoints[gShipCurrentPoint][4],
        gShipRoutePoints[gShipCurrentPoint][5]);
return 1;
}
if(gShipCurrentPoint == 1) {
    // Before heading to the first route we should wait a bit
    SetTimer(\"StartMovingTimer\",30*1000,0); // pause at route 0 for 30 seconds
return 1;
}
 
    new tempdebug[256+1];
    format(tempdebug,256,\"The ship is at route: %d\", gShipCurrentPoint);
    SendClientMessageToAll(0xFFFFFFFF,tempdebug);
   
    MoveObject(gMainShipObjectId,gShipRoutePoints[gShipCurrentPoint][0],
    gShipRoutePoints[gShipCurrentPoint][1],
    gShipRoutePoints[gShipCurrentPoint][2],
    SHIP_MOVE_SPEED,
    gShipRoutePoints[gShipCurrentPoint][3],
    gShipRoutePoints[gShipCurrentPoint][4],
gShipRoutePoints[gShipCurrentPoint][5]);
return 1;
}
//-------------------------------------------------

Oldalak: 1 [2]
SimplePortal 2.3.7 © 2008-2024, SimplePortal