| 
	
		 
			
		
		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 - Campe3r
			
			Oldalak: 1 2 [3] 4 5  ... 20 
		 
			
				
				
					31 
						
						« Dátum: 2014. május 01. - 11:40:03 »
					 
					Sziasztok! Ezzel mi lehet a gond? public JarmuMent(vehicleid){
 GetVehiclePos(vehicleid, JarmuInfo[vehicleid][JPosX], JarmuInfo[vehicleid][JPosY], JarmuInfo[vehicleid][JPosZ]);
 GetVehicleZAngle(vehicleid, JarmuInfo[vehicleid][JPosR]);
 format(Query, sizeof(Query), \"UPDATE `jarmuvek` SET `model` = \'%d\', `posx` = \'%f\', `posy` = \'%f\', `posz` = \'%f\', `posr` = \'%f\', `jposx` = \'%f\', `jposy` = \'%f\', `jposz` = \'%f\', `jposr` = \'%f\', `szin1` = \'%d\', `szin2` = \'%d\', `tulaj` = \'%s\', `frakcio` = \'%d\' WHERE `id` = \'%d\'\", JarmuInfo[vehicleid][Model], JarmuInfo[vehicleid][PosX], JarmuInfo[vehicleid][PosY], JarmuInfo[vehicleid][PosZ], JarmuInfo[vehicleid][PosR], JarmuInfo[vehicleid][JPosX], JarmuInfo[vehicleid][JPosY], JarmuInfo[vehicleid][JPosZ], JarmuInfo[vehicleid][JPosR], JarmuInfo[vehicleid][szin1], JarmuInfo[vehicleid][szin2], JarmuInfo[vehicleid][Tulaj], JarmuInfo[vehicleid][Frakcio], vehicleid);
 mysql_query(Query);
 }
 Amit hibaüzenetnek kapok:  ngrp.pwn(1087) : error 075: input line too long (after substitutions)ngrp.pwn(1088) : error 017: undefined symbol \"Jarm\"
 ngrp.pwn(1089) : warning 217: loose indentation
 ngrp.pwn(1089) : error 017: undefined symbol \"uInfo\"
 ngrp.pwn(1089) : warning 215: expression has no effect
 ngrp.pwn(1089) : error 001: expected token: \";\", but found \"]\"
 ngrp.pwn(1089) : error 029: invalid expression, assumed zero
 ngrp.pwn(1089) : fatal error 107: too many error messages on one line
 
			
				
				
					32 
						
						« Dátum: 2014. május 01. - 00:03:23 »
					 
					Kb hány %-nál van msot a projekt?
					 
			
				
				
					33 
						
						« Dátum: 2014. április 27. - 11:21:19 »
					 
					Meg se találtam benne a parancsot.
					 
			
				
				
					34 
						
						« Dátum: 2014. április 26. - 21:59:03 »
					 
					r6-ot használok, de egyépkétn megoldottam, kilestem dlc-bõl XD
					 
			
				
				
					35 
						
						« Dátum: 2014. április 26. - 17:41:42 »
					 
					Sziasztok! Az a kérdésem, hogy mit válasszak ki mysql-el a WHERE részben, hogy autót be tudjak tölteni? Eddig ennyit tudtam a kódból megcsinálni:  public JarmuBetolt(vehicleid)Itt{
 format(Query, sizeof(Query), \"SELECT * FROM jarmuvek\");
 mysql_query(Query);
 }
  a mysql tábla Mit válasszak ki, hogy mûködjön ez a funkció? (Bocsi, nem tudtam hogyan fogalmazzam ezt meg)
					 
			
				
				
					36 
						
						« Dátum: 2014. április 26. - 10:58:45 »
					 
					streamer van?
					 
			
				
				
					37 
						
						« Dátum: 2014. április 26. - 09:25:11 »
					 
					Na mostmár nem is mûködik a parancs :SE.: megoldottam, annyi volt a probléma, hogy a sendngrpmessage-ben túl sok volt a színkód, ezért nem írta ki.
 
			
				
				
					38 
						
						« Dátum: 2014. április 25. - 21:08:45 »
					 
					Sziasztok! Valamiért ha beírom /adminad, akkor nem írja ki, hogyan kéne használni, és amikor adok valakinek játékost nem írja ki a formázott stringet. Kód:  CMD:adminad(playerid, params[]){
 new id, Szint;
 new SzintSzoveg[248];
 if(sscanf(params, \"ud\", id, Szint)) return SendNGRPMessage(playerid, 3, \"/adminad [Játékos ID/Játékos Név] [AdminSzint]\");
 if(IsPlayerConnected(playerid) || FelhasznaloInfo[playerid][bejelentkezve] == 1)
 {
 if(IsPlayerConnected(id) || FelhasznaloInfo[id][bejelentkezve] == 1)
 {
 if(Szint >= 0 && Szint <= 7)
 {
 if(Szint == 1) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Kezdõ Adminsegédet\"); }
 if(Szint == 2) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Haladó Adminsegédet\"); }
 if(Szint == 3) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Fõ Adminsegédet\"); }
 if(Szint == 4) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Kezdõ Adminisztrátort\"); }
 if(Szint == 5) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Haladó Adminisztrátort\"); }
 if(Szint == 6) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Fõ Adminisztrátort\"); }
 if(Szint == 7) { format(SzintSzoveg, sizeof(SzintSzoveg), \"Tulajdonost\"); }
 new String[256];
 for(new i; i < MAX_PLAYERS; i++)
 {
 format(String, sizeof(String), \"%s nevû játékosnak %s adtál\", Nev(id), SzintSzoveg);
 SendNGRPMessage(playerid, 4, String);
 format(String, sizeof(String), \"%s %s adott neked\", Nev(playerid), SzintSzoveg);
 SendNGRPMessage(id, 4, String);
 if(IsPlayerConnected(i) && FelhasznaloInfo[bejelentkezve] == 1)
 {
 if(FelhasznaloInfo[AdminSzint] >= 0 && FelhasznaloInfo[AdminSzint] <= 7)
 {
 format(String, sizeof(String), \"%s nevû játékosnak %s adott %s\", Nev(id), id, Szint, Nev(playerid));
 SendNGRPMessage(i, 4, String);
 }
 }
 }
 }
 else
 {
 SendNGRPMessage(playerid, 2, \"AdminSzint: 0 - 7\");
 }
 }
 else
 {
 SendNGRPMessage(playerid, 2, \"A játékos nincs fent a szerveren!\");
 }
 }
 return 1;
 }
 A SendNGRPMessage-vel ne foglalkozzatok, az mûködik a többi parancsnál.
					 
			
				
				
					39 
						
						« Dátum: 2014. április 24. - 21:56:52 »
					 
					Nem igazán értem, de szerintem rakj be egy if(vanhely == 1) részt, ha jól láttam ez kell.
					 
			
				
				
					40 
						
						« Dátum: 2014. április 24. - 16:58:19 »
					 
					Nem, ne is kérdezz róla..Ha ezt tudom ink nem is válaszolok..
					 
			
				
				
					41 
						
						« Dátum: 2014. április 24. - 16:34:18 »
					 
					Le tudod írni a mysql tuning mentést, betöltést?
					 
			
				
				
					42 
						
						« Dátum: 2014. április 23. - 23:51:44 »
					 
					Holnap délután megírom neked ideiglenes mentéssel, most fáradt vagyok   E.: Tessék, megírtam neked   Szükséges: sscanf, zcmd Itt az enum, az ideiglenes tárolásra Tedd a gm-ed/script-ed elejére  enum KocsiInfoEnum{
 KocsiPenz //Ha menteni szeretnél ezt kösd rá a dinire/mysqlre
 }
 new KocsiInfo[MAX_VEHICLES][KocsiInfoEnum];
 Betesz parancs  CMD:betesz(playerid, params[]){
 for(new i = 0; i < MAX_VEHICLES; i++)
 {
 new Penz;
 new String[256];
 new Float:x, Float:y, Float:z;
 if(sscanf(params, \"i\", Penz)) return SendClientMessage(playerid, -1, \"Használat: /betesz [összeg]\");
 GetPlayerPos(playerid, x, y, z);
 if(IsVehicleInRangeOfPoint(i, 5.0, x, y, z))
 {
 if(Penz <= GetPlayerMoney(playerid))
 {
 GivePlayerMoney(playerid, -Penz);
 KocsiInfo[KocsiPenz] += Penz;
 format(String, sizeof(String), \"Betettél a kocsiba %i$-t.\", Penz);
 SendClientMessage(playerid, -1, String);
 }
 else
 {
 SendClientMessage(playerid, -1, \"Nincs nálad elég pénz!\");
 }
 }
 else
 {
 SendClientMessage(playerid, -1, \"Nem vagy kocsi közelében!\");
 }
 }
 return 1;
 }
 Ezzel megnézheted, hogy mennyi pénz van a kocsiban.  CMD:kocsipenz(playerid, params[]){
 new String[256];
 new Float:x, Float:y, Float:z;
 GetPlayerPos(playerid, x, y, z);
 for(new i = 0; i < MAX_VEHICLES; i++)
 {
 if(IsVehicleInRangeOfPoint(i, 5.0, x, y, z))
 {
 format(String, sizeof(String), \"A kocsiban %i$ van.\", KocsiInfo[KocsiPenz]);
 SendClientMessage(playerid, -1, String);
 }
 else
 {
 SendClientMessage(playerid, -1, \"Nem vagy kocsi közelében!\");
 }
 }
 }
 Ezzel veszed ki a pénz a kocsiból.  CMD:kivesz(playerid, params[]){
 for(new i = 0; i < MAX_VEHICLES; i++)
 {
 new Penz;
 new String[256];
 new Float:x, Float:y, Float:z;
 if(sscanf(params, \"i\", Penz)) return SendClientMessage(playerid, -1, \"Használat: /kivesz [összeg]\");
 GetPlayerPos(playerid, x, y, z);
 if(IsVehicleInRangeOfPoint(i, 5.0, x, y, z))
 {
 if(Penz <= KocsiInfo[KocsiPenz])
 {
 GivePlayerMoney(playerid, Penz);
 KocsiInfo[KocsiPenz] -= Penz;
 format(String, sizeof(String), \"Kivettél a kocsiból %i$-t.\", Penz);
 SendClientMessage(playerid, -1, String);
 }
 else
 {
 SendClientMessage(playerid, -1, \"A kocsiban nincs ennyi pénz!\");
 }
 }
 else
 {
 SendClientMessage(playerid, -1, \"Nem vagy kocsi közelében!\");
 }
 }
 return 1;
 }
 E nélkül meg nem mûködne(elnézést, ha van valami más módszer e nélkül) Tedd a gm-ed/script-ed végére  stock IsVehicleInRangeOfPoint(vehicleid, Float:radi, Float:x, Float:y, Float:z){
 new Float:oldposx, Float:oldposy, Float:oldposz;
 new Float:tempposx, Float:tempposy, Float:tempposz;
 GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
 tempposx = (oldposx -x);
 tempposy = (oldposy -y);
 tempposz = (oldposz -z);
 if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
 {
 return 1;
 }
 return 0;
 }
 
			
				
				
					43 
						
						« Dátum: 2014. április 23. - 22:20:49 »
					 
					Tényleg, észre sem vettem.    köszönöm E: Csinálnám a barát rendszeremet, hogy a chatbe, /me-be, /do-ba csak az látja a nevét az embernek aki csinálja, akinek megvan barátnak. Valamiért nem jó :S  CMD:me(playerid, params[]){
 if(IsPlayerConnected(playerid))
 {
 new String[256];
 new String2[256];
 new Nev[MAX_PLAYER_NAME];
 new Float:PosX;
 new Float:PosY;
 new Float:PosZ;
 GetPlayerPos(playerid, PosX, PosY, PosZ);
 GetPlayerName(playerid, Nev, sizeof(Nev));
 if(sscanf(params, \"s[256]\", String)) return SendNGRPMessage(playerid, 3, \"/me [cselekvés]\");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
 if(IsPlayerInRangeOfPoint(i, 30.00, PosX, PosY, PosZ))
 {
 if(IsPlayerBarat(i, Nev))
 {
 format(String2, sizeof(String2), \"{f041be}* %s %s.{f041be}\", Nev, String);
 SendClientMessage(i, -1, String2);
 }
 else
 {
 format(String2, sizeof(String2), \"{f041be}* Valaki %s.{f041be}\", String);
 SendClientMessage(i, -1, String2);
 }
 }
 }
 }
 }
 return 1;
 }
 forward IsPlayerBarat(playerid, KarakterNev[]); public IsPlayerBarat(playerid, KarakterNev[]){
 new Nev[MAX_PLAYER_NAME];
 GetPlayerName(playerid, Nev, sizeof(Nev));
 format(Query, sizeof(Query), \"SELECT * FROM baratok WHERE karakter = \'%s\' AND barat = \'%s\'\", KarakterNev, Nev);
 mysql_query(Query);
 return 1;
 }
 [mod]Javítottam a code tageket.[/mod]
					 
			
				
				
					44 
						
						« Dátum: 2014. április 23. - 22:06:43 »
					 
					Én nem találtam benne hibát, talán a SELECT-nél ne csak az id-t válaszd ki, hanem a mindent, azaz *-t
					 
			
				
				
					45 
						
						« Dátum: 2014. április 23. - 22:01:47 »
					 
					dinit, vagy mysql-t használsz?
					 
			Oldalak: 1 2 [3] 4 5  ... 20 
		 |