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 - pisti525
Oldalak: 1 ... 14 15 [16] 17 18 ... 57
226
« Dátum: 2013. március 24. - 08:26:51 »
Sziasztok! Tudna ebben valaki segíteni ?? #include <a_samp> #include <streamer> #include <sscanf2> new rang public OnGameModeInit() { if(strcmp(cmd, \"/adakozásk\", true) == 0 || strcmp(cmd, \"/adakozaskatonasag\", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /adakozásk [összeg]\"); return 1; } new szintx = strval(tmp); if(PlayerInfo[playerid][Penz] >= szintx) { if(szintx != 0 && szintx > 0) { PlayerInfo[playerid][Penz] -= szintx; SafeGivePlayerMoney(playerid, -szintx); format(stringx, sizeof(stringx), \"Köszöni a Katonaság a %d$-os adományát!\", szintx); SendClientMessage(playerid, COLOR_WHITE, stringx); taxikassza += szintx; SaveTaxikassza(); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s adományozott a Katonaságnak %d$-t.\",y,m,d,h,mi,s,nev,szintx); LoOoG(stringx); } else SendClientMessage(playerid, COLOR_GRAD2, \"Nincs ennyi pénzed!\"); } else SendClientMessage(playerid, COLOR_GRAD2, \"A pénznek nagyobbnak kell lennie 1$-nál!!\"); return 1; } if(strcmp(cmd, \"/kkassza-kivesz\", true) == 0 || strcmp(cmd, \"/katonakassza-kivesz\", true) == 0) { if(IsPlayerConnected(playerid)) { if(!PlayerToPoint(20.0, playerid, 2053.4993,-2645.8596,13.5578)) { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy a bankban!\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /katonakassza-kivesz [összeg]\"); return 1; } if(PlayerInfo[playerid][pLeader] == 10) { new moneyv; moneyv = strval(tmp); if(taxikassza >= moneyv) { SafeGivePlayerMoney(playerid, moneyv); PlayerInfo[playerid][Penz] += moneyv; taxikassza -= moneyv; SaveTaxikassza(); format(stringx, sizeof(stringx), \"Katonakassza most %d$-on áll.\", taxikassza); SendClientMessage(playerid, COLOR_YELLOW, stringx); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s Rangidõs Katona kivett a katonakasszából %d$-t.\",y,m,d,h,mi,s,nev,moneyv); LoOoG(stringx); } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nincs ennyi pénz a számlán!\"); } } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy rangidõs katona!\"); } } return 1; } if(strcmp(cmd, \"/kkassza\", true) == 0 || strcmp(cmd, \"/katonakassza\", true) == 0) { if(PlayerInfo[playerid][pLeader] == 10 || Admin(playerid, 1)) { format(stringx, sizeof(stringx), \"Katonakassza Tartalma: %d$\", taxikassza); SendClientMessage(playerid, COLOR_YELLOW, stringx); new nev[30]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s megnézte a Katonakassza tartalmát.\",y,m,d,h,mi,s,nev); LoOoG(stringx); } else { SendClientMessage(playerid, COLOR_WHITE, \"Nem vagy Rangidõs katona!\"); } return 1; } if(strcmp(cmd, \"/szolgálat\", true) == 0 || strcmp(cmd, \"/szolgalat\", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 1) { if(PlayerToPoint(20.0,playerid,1292.9324,-832.7597,1085.6328)) { if(OnDuty[playerid]==0) { SendClientMessage(playerid, COLOR_WHITE, \"Szolgálatba álltál.\"); SendClientMessage(playerid, COLOR_WHITE, \"Fegyverek elõvételéhez /elõvesz.\"); GetPlayerName(playerid, sendername, sizeof(sendername)); new rang[50]; if(PlayerInfo[playerid][pRank] == 1) format(rang, sizeof(rang), \"Közlegény\"); else if(PlayerInfo[playerid][pRank] == 2) format(rang, sizeof(rang), \"Elsõ osztályú közlegény\"); else if(PlayerInfo[playerid][pRank] == 3) format(rang, sizeof(rang), \"Tizedes\"); else if(PlayerInfo[playerid][pRank] == 4) format(rang, sizeof(rang), \"Õrmester\"); else if(PlayerInfo[playerid][pRank] == 5) format(rang, sizeof(rang), \"Törzsõrmester\"); else if(PlayerInfo[playerid][pRank] == 6) format(rang, sizeof(rang), \"Rangidõs\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Katona %s Szolgálatba Állt!\", sendername,rang); OOCNews(0x3399FF,string); PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += 500; PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += 1; SetPlayerArmour(playerid, 50); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a szolgálatból.\"); SetPlayerArmour(playerid, 0); OnDuty[playerid] = 0; } } else SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy a rendõrségen!\"); } if(PlayerInfo[playerid][pLeader] == 1) { if(PlayerToPoint(20.0,playerid,1292.9324,-832.7597,1085.6328)) { if(OnDuty[playerid]==0) { SendClientMessage(playerid, COLOR_WHITE, \"Szolgálatba álltál.\"); SendClientMessage(playerid, COLOR_WHITE, \"Fegyverek elõvételéhez /elõvesz.\"); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Rangidõs Katona Szolgálatba Állt!\", sendername); OOCNews(0x3399FF,string); PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += 500; PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += 1; SetPlayerArmour(playerid, 50); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a szolgálatból.\"); SafeResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); OnDuty[playerid] = 0; } } else SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy a rendõrségen!\"); } if(PlayerInfo[playerid][pMember] == 2) { if(OnDuty[playerid]==1) { SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a szolgálatból.\"); OnDuty[playerid] = 0; } } Hibák: C:\\Users\\PISTI\\Desktop\\frakcio.pwn(7) : error 001: expected token: \";\", but found \"public\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(9) : error 017: undefined symbol \"cmd\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(11) : error 017: undefined symbol \"tmp\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(11) : error 017: undefined symbol \"strtok\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(12) : error 017: undefined symbol \"tmp\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(14) : error 017: undefined symbol \"playerid\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(17) : error 017: undefined symbol \"tmp\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(18) : error 017: undefined symbol \"PlayerInfo\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(18) : error 017: undefined symbol \"playerid\" C:\\Users\\PISTI\\Desktop\\frakcio.pwn(18) : error 029: invalid expression, assumed zero C:\\Users\\PISTI\\Desktop\\frakcio.pwn(18) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 11 Errors. És még azt nem bírom megcsinálni hogy a scriptfiles-ba mentse el a Katonakassza tartalmát Tudom kezdõ vagyok!! Elõre is köszönöm!
227
« Dátum: 2013. március 23. - 21:18:33 »
a legegyszerûbb megoldás ami nálam 100%-os mindig hogy csak a announce-t, samp-npc-t és a samp-server-t frissítem az aktuális verzióra! és semmi plugin,include hiba nincs
228
« Dátum: 2013. március 23. - 21:10:49 »
köszi ment a +!
229
« Dátum: 2013. március 23. - 19:59:36 »
Sziasztok!
Hogy lehetséges azt megoldani hogy mindenkinek fehér neve legyen ?? Elõre is köszönöm!!
230
« Dátum: 2013. március 23. - 10:33:10 »
Sziasztok! Erre tudna nekem mondani valami hogy hova kell rakni és mit kell még vele csinálni hogy jó legyen ?? new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object SetObjectMaterialText(myobject, \"SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7\", 0, OBJECT_MATERIAL_SIZE_256x128,\\ \"Arial\", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); // write \"SA-MP 0.3e RC7\" on the object, with orange font color and black background Elõre is köszönöm!
231
« Dátum: 2013. március 21. - 16:06:10 »
232
« Dátum: 2013. március 21. - 14:40:57 »
234
« Dátum: 2013. március 21. - 14:04:17 »
és erre tudnál valamit mondani ? :hmmm: mindegyiknél jó csak ennél nem
235
« Dátum: 2013. március 21. - 13:54:06 »
236
« Dátum: 2013. március 21. - 13:44:35 »
Sziasztok!
Valaki áttudná nekem küldeni az IPTA2.pwn fájlát ?? Nagyon de nagyon megköszönném!!
237
« Dátum: 2013. március 21. - 13:31:46 »
hát ez nekem is jó jönne csak én be se vagyok regisztrálva PLS nekem is valaki töltse le
238
« Dátum: 2013. március 20. - 17:28:16 »
Szia!
ez nem hiba hanem kickelt a szerver vagy kivagy banolva
239
« Dátum: 2013. március 20. - 15:07:45 »
szerintem erre gondolsz: 2898
240
« Dátum: 2013. március 20. - 14:49:21 »
Sziasztok! Beszeretnék mutatni nektek egy órát Készítõ: DarkyTheAngelKódja: /clock Kép: //______________________________________________________________________________ #if defined Digital_Clock_v_1_0 // o.OOOo. ooOoOOo .oOOOo. ooOoOOo oOoOOoOOo Oo o O `o O .O o O o o O O // o O o o o o O o o O o O O O O oOooOoOo o // o O o O .oOOo o o o O O O o O o. O O O O o O // o .O\' O O. oO O O o O o . OooOO\' ooOOoOo `OooO\' ooOOoOo o\' O. O OOoOooO // Made by DarkyTheAngel aka Darky! // .oOOOo. o .oOOOo. .oOOOo. `o O .O o O .O o. .O o o O // o o O o o O O o o o O o oOo // o O O o o o o O O o O O O O // `o .o o . `o O\' `o .o o o `OoooO\' OOoOooO `OoooO\' `OoooO\' O O #endif //______________________________________________________________________________ #include \" a_samp \" #include \" zcmd \" //______________________________________________________________________________ #define W \"{FFFFFF}\" #define R \"{A10000}\" #define G \"{3EA100}\" //______________________________________________________________________________ new Text:ClockTextdraw [ 8 ] , StartClock [ MAX_PLAYERS ] , StopClock [ MAX_PLAYERS ] , bool:IsActive [ MAX_PLAYERS ] ; //______________________________________________________________________________ public OnFilterScriptInit ( ) { ClockTextdraw [ 0 ] = TextDrawCreate ( 489.375000 , 385.583404 , \"_\" ) ; TextDrawLetterSize ( ClockTextdraw [ 0 ] , 0.536248 , 4.434998 ) ; TextDrawTextSize ( ClockTextdraw [ 0 ] , 581.875000 , 1.749999 ) ; TextDrawUseBox ( ClockTextdraw [ 0 ] , true ) ; TextDrawBoxColor ( ClockTextdraw [ 0 ] , 255 ) ; TextDrawSetOutline ( ClockTextdraw [ 0 ] , -1 ) ; //______________________________________________________________________________ ClockTextdraw [ 1 ] = TextDrawCreate ( 580.625000 , 371.000030 , \")\" ) ; TextDrawLetterSize ( ClockTextdraw [ 1 ] , 0.474375 , 6.126666 ) ; TextDrawFont ( ClockTextdraw [ 1 ] , 1 ) ; TextDrawColor ( ClockTextdraw [ 1 ] , 255 ) ; TextDrawSetOutline ( ClockTextdraw [ 1 ] , 1 ) ; TextDrawFont ( ClockTextdraw [ 1 ] , 1 ) ; TextDrawAlignment ( ClockTextdraw [ 1 ] , 1 ) ; TextDrawSetShadow ( ClockTextdraw [ 1 ] , 0 ) ; //______________________________________________________________________________ ClockTextdraw [ 2 ] = TextDrawCreate ( 484.125000 , 372.000030 , \"(\" ) ; TextDrawLetterSize ( ClockTextdraw [ 2 ] , 0.474375 , 6.126666 ) ; TextDrawFont ( ClockTextdraw [ 2 ] , 1 ) ; TextDrawColor ( ClockTextdraw [ 2 ] , 255 ) ; TextDrawSetOutline ( ClockTextdraw [ 2 ] , 1 ) ; TextDrawFont ( ClockTextdraw [ 2 ] , 1 ) ; TextDrawAlignment ( ClockTextdraw [ 2 ] , 1 ) ; TextDrawSetShadow ( ClockTextdraw [ 2 ] , 0 ) ; //______________________________________________________________________________ ClockTextdraw [ 3 ] = TextDrawCreate ( 491.250000 , 387.916748 , \"_\" ) ; TextDrawLetterSize ( ClockTextdraw [ 3 ] , 0.365624 , -0.266665 ) ; TextDrawTextSize ( ClockTextdraw [ 3 ] , 579.375000 , -6.416666 ) ; TextDrawColor ( ClockTextdraw [ 3 ] , 1296911648 ) ; TextDrawUseBox ( ClockTextdraw [ 3 ] , true ) ; TextDrawBoxColor ( ClockTextdraw [ 3 ] , 1296911648 ) ; //______________________________________________________________________________ ClockTextdraw [ 4 ] = TextDrawCreate ( 493.500000 , 424.833221 , \"_\" ) ; TextDrawLetterSize ( ClockTextdraw [ 4 ] , 0.365624 , -0.266665 ) ; TextDrawTextSize ( ClockTextdraw [ 4 ] , 579.375000 , -6.416666 ) ; TextDrawColor ( ClockTextdraw [ 4 ] , 1296911648 ) ; TextDrawUseBox ( ClockTextdraw [ 4 ] , true ) ; TextDrawBoxColor ( ClockTextdraw [ 4 ] , 1296911648 ) ; //______________________________________________________________________________ ClockTextdraw [ 5 ] = TextDrawCreate ( 490.000000 , 385.000061 , \"99:99\" ) ; TextDrawLetterSize ( ClockTextdraw [ 5 ] , 0.721875 , 3.682500 ) ; TextDrawColor ( ClockTextdraw [ 5 ] , 1296911664 ) ; TextDrawFont ( ClockTextdraw [ 5 ] , 2 ) ; //______________________________________________________________________________ ClockTextdraw [ 6 ] = TextDrawCreate ( 529.375000 , 388.500061 , \":\" ) ; TextDrawLetterSize ( ClockTextdraw [ 6 ] , 0.679375 , 3.017501 ) ; TextDrawColor ( ClockTextdraw [ 6 ] , 7709695 ) ; TextDrawSetOutline ( ClockTextdraw [ 6 ] , 1 ) ; TextDrawFont ( ClockTextdraw [ 6 ] , 2 ) ; //______________________________________________________________________________ ClockTextdraw [ 7 ] = TextDrawCreate ( 490.625000 , 387.916656 , \"00 00\" ) ; TextDrawLetterSize ( ClockTextdraw [ 7 ] , 0.705000 , 3.332500 ) ; TextDrawColor ( ClockTextdraw [ 7 ] , 7709695 ) ; TextDrawSetOutline ( ClockTextdraw [ 7 ] , 1 ) ; TextDrawFont ( ClockTextdraw [ 7 ] , 2 ) ; //______________________________________________________________________________ SetTimer ( \"GetPlayerTimeEx\" , 1000 , true ) ; return ( 1 ) ; } //______________________________________________________________________________ public OnPlayerDisconnect ( playerid , reason ) { KillTimer ( StartClock [ playerid ] ) ; KillTimer ( StopClock [ playerid ] ) ; IsActive [ playerid ] = false ; return ( 1 ) ; } //______________________________________________________________________________ public OnPlayerSpawn ( playerid ) { StartClock [ playerid ] = SetTimerEx ( \"ActiveClock\" , 350 , 0 , \"i\" , playerid ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 0 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 1 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 2 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 3 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 4 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 5 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 7 ] ) ; IsActive [ playerid ] = true ; return ( 1 ) ; } //______________________________________________________________________________ public OnPlayerRequestClass ( playerid , classid ) { TextDrawHideForPlayer ( playerid , ClockTextdraw [ 0 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 1 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 2 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 3 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 4 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 5 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 7 ] ) ; IsActive [ playerid ] = false ; return ( 1 ) ; } //______________________________________________________________________________ forward ActiveClock ( playerid ) ; public ActiveClock ( playerid ) { TextDrawHideForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; KillTimer ( StartClock [ playerid ] ) ; StopClock [ playerid ] = SetTimerEx ( \"DisableClock\" , 350 , 0 , \"i\" , playerid ) ; } //______________________________________________________________________________ forward DisableClock ( playerid ) ; public DisableClock ( playerid ) { TextDrawShowForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; KillTimer ( StopClock [ playerid ] ) ; StartClock [ playerid ] = SetTimerEx ( \"ActiveClock\" , 350 , 0 , \"i\" , playerid ) ; } //______________________________________________________________________________ forward GetPlayerTimeEx ( playerid ) ; public GetPlayerTimeEx ( playerid ) { new string [ 28 ] , hour , minute ; gettime ( hour , minute ) ; format ( string , sizeof string , \"%s%d %s%d\" , ( hour < 10 ) ? ( \"0\" ) : ( \"\" ) , hour , ( minute < 10 ) ? ( \"0\" ) : ( \"\" ) , minute ) ; TextDrawSetString ( ClockTextdraw [ 7 ] , string ) ; if ( hour == 12 || hour == 13 || hour == 14 || hour == 15 || hour == 16 || hour == 17 || hour == 18 || hour == 19 || hour == 21 ) { format ( string , sizeof string , \" %s%d %s%d\" , ( hour < 10 ) ? ( \"0\" ) : ( \"\" ) , hour , ( minute < 10 ) ? ( \"0\" ) : ( \"\" ) , minute ) ; TextDrawSetString ( ClockTextdraw [ 7 ] , string ) ; } } //______________________________________________________________________________ CMD:clock( playerid , params [ ] ) { #define SPD ShowPlayerDialog SPD ( playerid , 0 , DIALOG_STYLE_LIST , \"\"W\"Clock\" , \" \"W\"Clock \\t \\t \\t [\"G\"ON\"W\"/\"R\"OFF\"W\"] \\n \"W\"Change your time \\t [\"R\"NOT AVAILABLE\"W\"]\" , \"O.K\" , \"Cancel\" ) ; return ( 1 ) ; } //______________________________________________________________________________ public OnDialogResponse ( playerid , dialogid , response , listitem , inputtext [ ] ) { if ( dialogid == 0 ) { if ( response ) { if ( listitem == 0 ) { SPD ( playerid , 1 , DIALOG_STYLE_MSGBOX , \" \" , \" \" , \"ON\" , \"OFF\" ) ; } } return ( 1 ) ; } if ( dialogid == 1 ) { if ( response ) { if ( IsActive [ playerid ] == false ) { IsActive [ playerid ] = true ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 7 ] ) ; TextDrawShowForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; StartClock [ playerid ] = SetTimerEx ( \"ActiveClock\" , 350 , 0 , \"i\" , playerid ) ; } } else { if ( IsActive [ playerid ] == true ) { IsActive [ playerid ] = false ; KillTimer ( StartClock [ playerid ] ) ; KillTimer ( StopClock [ playerid ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 7 ] ) ; TextDrawHideForPlayer ( playerid , ClockTextdraw [ 6 ] ) ; } } return ( 1 ) ; } return ( 0 ) ; } //______________________________________________________________________________ Használjátok egészséggel!
Oldalak: 1 ... 14 15 [16] 17 18 ... 57
|