-other-Mizi_CZ 0 Odesláno: 17. Březen, 2009 Share Odesláno: 17. Březen, 2009 #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 btoto ti asi chybý nebo to máš na špatným místě Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 17. Březen, 2009 Share Odesláno: 17. Březen, 2009 on dcmd definovane ma ale to dcmd_login a register dal do publicu nie mimo Link to comment Share on other sites More sharing options...
Guest prezdivka Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 tak mi prosim poradte nadefinovane dcmd mam tady mezi fowardama a newama. //-----------------------------------[ NEWY ]----------------------------------| #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 //---------------------------------[ FOWARD"s ]--------------------------------| potom mám u definicí ten stock new PLAYERLIST_authed[MAX_PLAYERS]; stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } a ted vám to tu dám celé //---------------------------------[ INCLUDE ]---------------------------------| #include #pragma tabsize 0 #include #include //---------------------------------[ DEFINES ]---------------------------------| #define COLOR_SYSTEM 0xEFEFF7AA //-----------------------------------[ NEWY ]----------------------------------| #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 //---------------------------------[ FOWARD"s ]--------------------------------| new PLAYERLIST_authed[MAX_PLAYERS]; stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } //----------------------------------[ INDEX ]----------------------------------| main() { print("\n +-----------------------------------+"); print( " | *** GameMode s regi *** |"); print( " +-----------------------------------+\n"); } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { return false; } public OnPlayerDisconnect(playerid, reason) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { //--------[ 1 CHAR ]-------| //--------[ 2 CHAR ]-------| //--------[ 3 CHAR ]-------| //--------[ 4 CHAR ]-------| //--------[ 5 CHAR ]-------| dcmd(login,5,cmdtext); // min zanku 5 //--------[ 6 CHAR ]-------| //--------[ 7 CHAR ]-------| //--------[ 8 CHAR ]-------| dcmd(register,8,cmdtext); // max znaku 8 dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Life]Already authed."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Life]Účet už existuje!!!!-Lamo-Přihlaš se příkazem:'/login password'."); if (strlen(params)==0) return SystemMsg(playerid,"[Life]Použití: '/register password'"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"[Life]Účet úspěšně vytvořený přihlaš se:'/login password'."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Life]Already authed."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Life]Účet Neexistuje zaregistruj se příkazem: '/register password'."); if (strlen(params)==0) return SystemMsg(playerid,"[Life]Použití: '/login password'"); if (udb_CheckLogin(PlayerName(playerid),params)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"[Life]Successfully authed!"); } return SystemMsg(playerid,"[Life]Přihlášení neuspěšné!"); } return 1; } return false; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } Ale stejně mi toto přijde hodně nedořešené Link to comment Share on other sites More sharing options...
maic 0 Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 Nj hold to se stává když se vydáváš za někoho kým nejsi s mou pomocí tedy nepočítej Link to comment Share on other sites More sharing options...
Guest prezdivka Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 lol ty jsi si asi necetl muj prvni prispevek tak tu nespamuj s takovejhlema kravinama a napis to dyztak PM Link to comment Share on other sites More sharing options...
maic 0 Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 Proč máš strach? A co, že už nemáš na serveru WTLS? To už se ti ozval toho pravýho niCeho právník jo? Bylo načase lamko Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 ja som ti poweal ze tie prikazy daj nakoniec modu nie do OnPlayerCommendText Link to comment Share on other sites More sharing options...
Guest prezdivka Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 heh treba proto ze me WTLS nebavilo a začal jsem dělat vlastní třeba toto ??? a _niCeho_ právník nemá koho najít když vý prdlajs a toto je návod na registraci ne na řešení tvýho problému A uz se to prekompilovalo bez problemu ale po chvili hraní mi to spadne takže tato registrace je nefunkční bohužel Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 picu je to funkcne ja ju pouzivam Link to comment Share on other sites More sharing options...
Guest Kayoke Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 C:\Documents and Settings\c\Plocha\SC0.1(5) : fatal error 100: cannot read from file: "dutils" co stim pls ? Link to comment Share on other sites More sharing options...
PcHawkVich 0 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 Čau všem, pořád to zkouším ale pořád mi to nejde nemohl by mi to někdo z vás vpasovat do módu? Dám ICQ. Mód nechcu zveřejňovat na netu ok? Link to comment Share on other sites More sharing options...
Mischino19 2 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 C:\Documents and Settings\c\Plocha\SC0.1(5) : fatal error 100: cannot read from file: "dutils" co stim pls ? musis dat #include ale musis to aj mat v zlozke include EDIT: http://rapidshare.com/files/256094073/dutils.inc.html a bude ti to hadzat aj dudb tak to mas tu http://rapidshare.com/files/256094321/dudb.inc.html musis si to ulozit pawno/include Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 C:\Documents and Settings\c\Plocha\SC0.1(5) : fatal error 100: cannot read from file: "dutils" co stim pls ? musis dat #include ale musis to aj mat v zlozke include EDIT: http://rapidshare.com/files/256094073/dutils.inc.html a bude ti to hadzat aj dudb tak to mas tu http://rapidshare.com/files/256094321/dudb.inc.html musis si to ulozit pawno/include pche pochybny linky z rapidshare .. http:// http://dracoblue.net/download/dutils-110/30/ http://dracoblue.net/download/dudb-24/31/ Link to comment Share on other sites More sharing options...
Mischino19 2 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 ser na Macha stiahni si moje xDDDDD Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 ser na Macha stiahni si moje xDDDDD vim,že to byl joke .. ale odpovim ti: kdo udelal ten includ, hmm kdo? .. dracoblue ... hmm a dracoblue.net nepřipadá ti to podobny?! Link to comment Share on other sites More sharing options...
PcHawkVich 0 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 Prosím lidičky, poraďte. Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 Prosím lidičky, poraďte. 4Ty wole dEmence nebo co4? 4(sry za ty 4 atd.. mam nejak hacknutou klavesnici) ... dY4ť sme ti tu oba dva napsali ODKAZY na download tech includů Link to comment Share on other sites More sharing options...
PcHawkVich 0 Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 Ale já ty soubory mám ale hlásilo mi to errory a kdybych je tu vypsal tak by jste řvali že tu nedám mód ale mód tu dávat nebudu. Proto jsem chtěl aby mi to někdo z vás do toho módu dal. Link to comment Share on other sites More sharing options...
Guest Kayoke Odesláno: 15. Červenec, 2009 Share Odesláno: 15. Červenec, 2009 hele tak sem stahnul oboje ale ete potrebuju dini...sry ze stim otravuju... Link to comment Share on other sites More sharing options...
Guest Kayoke Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 tak dini uz mam ale ted : C:\Documents and Settings\c\Plocha\SC0.1(40) : error 001: expected token: "#endif", but found "-end of file-" Link to comment Share on other sites More sharing options...
Guest Kayoke Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 tak to uz se taky vyresilo Link to comment Share on other sites More sharing options...
Jean 0 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 Zdar, mal jsem stejny probelm jako PcHawkVich (dutils,...) tak si to stahnu a dam to kam patri, prestane to psat dutils a to druhy a zacne to psat zas tohle: fatal error 100: cannot read from file: "dini" Jestly vite oc jde (jako ze ja vubec ) tak bych prosil o radu, dekuji predem. Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 stiahni si dini.INC z netu a hore do módu daj #include Link to comment Share on other sites More sharing options...
Jean 0 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 Jo uz sem na to taky kapnul, posilam odkaz ke stazeni kdyby to nekdo potreboval... http://www.sa-mp.kx.cz/downloads.php?cat_id=7 // je tam toho vic Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 17. Červenec, 2009 Share Odesláno: 17. Červenec, 2009 Poradte co znamena TOTO (133) : error 017: undefined symbol "dUserINT" (74) : error 017: undefined symbol "dUserSetINT" Na riadku 133 mam toto : GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMo ney(playerid)); A na riadku 74 : dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); A cele mam to takto : ////////////////Include//////////////////////////// #include #include #include ///////////////Define´s//////////////////////////// #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOR_SYSTEM 0xEFEFF7AA #pragma tabsize 0; ///////////////New´s////////////////////////////// new PLAYERLIST_authed[MAX_PLAYERS]; ////////////If Define´s///////////////////////////:D #if defined FILTERSCRIPT main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #else stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } #endif public OnGameModeInit() { SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { PLAYERLIST_authed[playerid]=false; return false; } public OnPlayerDisconnect(playerid, reason) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Life]Already authed."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Life]Účet už existuje!!!!-Lamo-Přihlaš se příkazem:'/login password'."); if (strlen(params)==0) return SystemMsg(playerid,"[Life]Použití: '/register password'"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"[Life]Účet úspěšně vytvořený přihlaš se:'/login password'."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Life]Already authed."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Life]Účet Neexistuje zaregistruj se příkazem: '/register password'."); if (strlen(params)==0) return SystemMsg(playerid,"[Life]Použití: '/login password'"); if (udb_CheckLogin(PlayerName(playerid),params)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"[Life]Successfully authed!"); } return SystemMsg(playerid,"[Life]Přihlášení neuspěšné!"); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/cheaty", cmdtext, true) == 0) { Kick(playerid); return 1; } dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 return false; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now