Szerző Téma: HAMACHI HIBA (?)  (Megtekintve 862 alkalommal)

Nem elérhető Vajzs

HAMACHI HIBA (?)
« Dátum: 2013. július 18. - 14:38:27 »
0 Show voters
HELLÓ!
Amikor elindítom a szervert (HAMACHI) a GM-mel, amit én csináltam, akkor kiírja hogy CONNECTED, de újra indul, pontosabban leáll.
Amikor meg beállítottam a rivershell vagy nem tudom milyen gamemode-ot akkor meg elindult. :wall: :wall:
GameMode-om:
 
//*GameModeot Vajzs (HalalDroid) készítette
#include <a_samp>
#include <zcmd>
main()
{
print(\"\\n----------------------------------\");
print(\" Magyar Falusi Élet. (xd) By: Vajzs\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
AddPlayerClass(132, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(134, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(135, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(128, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(131, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(130, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(129, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(159, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(160, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
SetGameModeText(\"[Magyar]Falusi élet\");
AddPlayerClass(133, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerFacingAngle(playerid, 345.8489);
SetPlayerPos(playerid, -37.1233,60.1917,3.1172);
SetPlayerCameraPos(playerid, -35.4599,66.1700,3.1172);
SetPlayerCameraLookAt(playerid, -39.2270,54.9230,6.4844);
return 1;
}
public OnPlayerConnect(playerid)
{
    new pName[30], string[128];
    GetPlayerName(playerid, pName, 30);
    format(string, 256, \"{ff0000}%s {ff8400}Fõgyütt {f7ff00}játszani!\", pName);
    SendClientMessageToAll(0xff0000AA,string);
    SendClientMessage(playerid,0xff0000AA,\"Üdvözüllek itt {ff8400}%s!\");
    SendClientMessage(playerid,0xff0000AA,\"Kérdésed elûtt olvasgassad ezt: {ff8400}/segitseg\");
    SendClientMessage(playerid,0xff0000AA,\"Aztán jó játékot itt!\");
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new pName[30], string[128];
    GetPlayerName(playerid, pName, 30);
    format(string, 256, \"{ff0000}%s {ff8400}eltakarodott {f7ff00}innét!\", pName);
    SendClientMessageToAll(0xff0000AA,string);
    return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,-37.0760,60.3843,3.1172);
SendClientMessage(playerid, 0x33AA33AA, \"Kaptál 100 Forintot cigire!\");
GivePlayerMoney(playerid, 100);
GivePlayerWeapon(playerid,6,1);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    new pName[30], string[128];
    GetPlayerName(playerid, pName, 30);
    format(string, 256, \"{ff0000}%s {ff8400}meghótt! {f7ff00}1 perces néma csönd!\", pName);
    SendClientMessageToAll(0xff0000AA,string);
return 1;
}
public OnPlayerText(playerid, text[])
{
    new string[152];
    new jatekosnev[MAX_PLAYER_NAME];
    GetPlayerName(playerid, jatekosnev, MAX_PLAYER_NAME);
    format(string, sizeof(string), \"%s {c4ff00}monnya\' > {29963e}%s\", jatekosnev, text);
    SendClientMessageToAll(0xff6600AA, string);
    return 0;
}
CMD:segitseg(playerid, params[])
{
    SendClientMessage(playerid, 0x33AA33AA, \"Légy üdvözülve! A parancsokért írd be hogy /parancsok!\");
    SendClientMessage(playerid, 0x33AA33AA, \"A szerveren parasztok szerepébe bújhatsz akik harcolnak,\");
    SendClientMessage(playerid, 0x33AA33AA, \"vagy barátkoznak egymással. Ezt te döntöd el. Hogy ölsz..\");
    SendClientMessage(playerid, 0x33AA33AA, \"vagy barátkozol..\");
    return 1;
}
CMD:parancsok(playerid, params[])
{
    SendClientMessage(playerid, 0xffae00AA, \"A szerveren csak FONTOS parancsok vannak.\");
    SendClientMessage(playerid, 0xffae00AA, \"/teleport - Teleportálás falukba > /bolt - Vásárolhatsz.\");
    SendClientMessage(playerid, 0xffae00AA, \"/kocsi - Autók  > /szinek - Névszín változtatása.\");
    SendClientMessage(playerid, 0xffae00AA, \"Egy ilyen szerverre több parancs nem is kell..\");
    return 1;
}
CMD:teleport(playerid, params[])
{
    SendClientMessage(playerid, 0xff0000AA, \"Falvakba tudsz teleportálni.\");
    SendClientMessage(playerid, 0xff0000AA, \"/fortcarson > Fort Carson\");
    SendClientMessage(playerid, 0xff0000AA, \"/dillimore > Dillimore\");
    SendClientMessage(playerid, 0xff0000AA, \"/palomino > Palomino Creek\");
    SendClientMessage(playerid, 0xff0000AA, \"Egyéb\");
    SendClientMessage(playerid, 0xff0000AA, \"/chilliad > Chilliad\");
    return 1;
}
CMD:bolt(playerid, params[])
{
SendClientMessage(playerid, 0x5dad28AA, \"Sanyi bótja:\");
SendClientMessage(playerid, 0x5dad28AA, \"/cigi > Cigaretta > 100 Forint\");
SendClientMessage(playerid, 0x5dad28AA, \"/koccintos > Koccintós bor > 50 forint\");
SendClientMessage(playerid, 0x5dad28AA, \"/zsirskenyer > Zsíroskenyér > 40 Forint\");
SendClientMessage(playerid, 0x5dad28AA, \"/tej > 1 L tej > 30 Forint\");
    return 1;
}
CMD:szinek(playerid, params[])
{
SendClientMessage(playerid, 0x5dad28AA, \"Váltható színek:\");
SendClientMessage(playerid, 0x5dad28AA, \"/kek > Kék\");
SendClientMessage(playerid, 0x5dad28AA, \"/zold > Zöld\");
SendClientMessage(playerid, 0x5dad28AA, \"/sarga > Sárga\");
SendClientMessage(playerid, 0x5dad28AA, \"/piros > Piros\");
    return 1;
}
CMD:kocsi(playerid, params[])
{
SendClientMessage(playerid, 0xffff00AA, \"Kocsik\");
SendClientMessage(playerid, 0xffff00AA, \"/bobcat > /walton\");
SendClientMessage(playerid, 0xffff00AA, \"/traktor > /clover\");
SendClientMessage(playerid, 0xffff00AA, \"/sadler > /sadlershit\");
SendClientMessage(playerid, 0xffff00AA, \"/bike > /faggio\");
    return 1;
}
CMD:cigi(playerid, params[])
{
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, 0x33AA33AA, \"Vettél egy cigit!\");
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
    return 1;
}
CMD:koccintos(playerid, params[])
{
GivePlayerMoney(playerid, -50);
    SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );
    SendClientMessage(playerid, 0x33AA33AA, \"Megittál 10 liter koccintóst!\");
    return 1;
}
CMD:zsiroskenyer(playerid, params[])
{
if(GetPlayerMoney(playerid) < 40) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 40$-od !\"); }
GivePlayerMoney(playerid,-40);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 15;
SetPlayerHealth(playerid,hp);
SendClientMessage(playerid,0xFF6600FF,\"Ettél egy zsíroskenyeret.\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}evett egy {ABCDEF}zsíroskenyeret!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:tej(playerid, params[])
{
if(GetPlayerMoney(playerid) < 30) { return SendClientMessage(playerid,0xFF6600FF,\"Nincs 30$-od !\"); }
GivePlayerMoney(playerid,-30);
new Float:hp;
GetPlayerHealth(playerid,hp);
hp += 5;
SetPlayerHealth(playerid,hp);
SendClientMessage(playerid,0xFF6600FF,\"Ittál egy kis tejet\");
PlayerPlaySound(playerid,1085,0,0,0);
new pName[30], string[128];
GetPlayerName(playerid, pName, 30);
format(string, 256, \"{FF9933}%s {FF0606}ivott {ABCDEF}tejet!\", pName);
SendClientMessageToAll(0xFF9933AA,string);
return 1;
}
CMD:bobcat(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(422, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Bobcat a zsömléid alatt.\");
return 1;
}
CMD:walton(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(468, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Walton a zsömléid alatt.\");
return 1;
}
CMD:traktor(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(531, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Traktor a zsömléid alatt.\");
return 1;
}
CMD:clover(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(542, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Clover a zsömléid alatt.\");
return 1;
}
CMD:sadler(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(543, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Sadler a zsömléid alatt.\");
return 1;
}
CMD:sadlershit(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(605, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Sadlershit a zsömléid alatt.\");
return 1;
}
CMD:faggio(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(562, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Faggio a zsömléid alatt.\");
return 1;
}
CMD:bike(playerid, params[])
{
new Float:X, Float:Y, Float:Z, sabre;
GetPlayerPos(playerid, X, Y, Z);
sabre = CreateVehicle(509, X, Y, Z, 0.0, -1, -1, -1);
PutPlayerInVehicle(playerid, sabre, 0);
SendClientMessage(playerid, 0x33AA33AA, \"Bike a zsömléid alatt.\");
return 1;
}
CMD:kek(playerid, params[])
{
    SetPlayerColor(playerid, 0x0000FFAA);
      return 1;
}
CMD:zold(playerid, params[])
{
    SetPlayerColor(playerid, 0x33AA33AA);
      return 1;
}
CMD:sarga(playerid, params[])
{
    SetPlayerColor(playerid, 0xFFFF00AA);
      return 1;
}
CMD:piros(playerid, params[])
{
    SetPlayerColor(playerid, 0xFF0606FF);
      return 1;
}
CMD:fortcarson(playerid, params[])
{
    SetPlayerPos(playerid,-297.2833,1081.7644,19.7344);
    SendClientMessage(playerid, 0x33AA33AA, \"De gyors vótá!\");
      return 1;
}
CMD:palomino(playerid, params[])
{
    SetPlayerPos(playerid,2242.3850,89.5415,26.3359);
    SendClientMessage(playerid, 0x33AA33AA, \"De gyors vótá!\");
      return 1;
}
CMD:dillimore(playerid, params[])
{
    SetPlayerPos(playerid,839.0895,-574.0507,16.3359);
    SendClientMessage(playerid, 0x33AA33AA, \"De gyors vótá!\");
      return 1;
}
CMD:chilliad(playerid, params[])
{
    SetPlayerPos(playerid,-2295.2148,-1667.0652,483.4263);
    SendClientMessage(playerid, 0x33AA33AA, \"De gyors vótá!\");
      return 1;
}
public OnPlayerCommandPerformed ( playerid, cmdtext [ ], success)
{
   if ( !success )
   {
   return SendClientMessage(playerid, 0x33AA33AA, \"Túl sok volt a koccintós. Ilyen parancs nincs!\");
   }
   return 1;
}

HAMACHI HIBA (?)
« Válasz #1 Dátum: 2013. július 18. - 17:56:19 »
+1 Show voters
Hát így ránézésre a hiba ezzel a sorral van:
 
SendClientMessage(playerid,0xff0000AA,\"Üdvözüllek itt {ff8400}%s!\");

 
a %s a végén, nem formattal raktad be... :)

Nem elérhető TwisT3R

  • 576
  • Küklopsz
  • Discord: TwisT3R#7833
    • Profil megtekintése
    • Firing Squad Clan
HAMACHI HIBA (?)
« Válasz #2 Dátum: 2013. július 18. - 18:11:42 »
+1 Show voters
Hát a Hamachinak semmi baja sincs, az elõzõ kommentelõnél van a hiba megoldása^^

Nem elérhető Vajzs

HAMACHI HIBA (?)
« Válasz #3 Dátum: 2013. július 18. - 18:12:56 »
0 Show voters
Idézetet írta: anorennia date=1374162979\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"39985\" data-ipsquote-contentclass=\"forums_Topic
Hát így ránézésre a hiba ezzel a sorral van:
 
SendClientMessage(playerid,0xff0000AA,\"Üdvözüllek itt {ff8400}%s!\");

 
a %s a végén, nem formattal raktad be... :)
 
Ez volt a baj tényleg. Ha lehetne 100 +-t adnék! NAGYON KÖSZÖNÖM!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal