Guest D3luX Odesláno: 16. Prosinec, 2009 Share Odesláno: 16. Prosinec, 2009 Caute...Ptreboval by som pomoc robim nove FS vedel by my niekto toto opravit? // Register / Login Filterscript // #include #include #include #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 #define green 0x33FF33AA #define blue 0x00FFFFAA #define COLOR_BRIGHTRED 0xFF0000AA enum Info { logged, } new pInfo[MAX_PLAYERS][info]; new PLAYERLIST_authed[MAX_PLAYERS]; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("Register / Login System"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print("Register / Login System"); print("----------------------------------\n"); } #endif public OnPlayerRequestSpawn(playerid) { if (udb_Exists(PlayerName(playerid))){ if (!PLAYERLIST_authed[playerid]){ SendClientMessage(playerid,green,"You have already registered, use /login to log into your account."); return 0; } } return 1; } public OnPlayerDisconnect(playerid) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("score",GetPlayerScore(playerid)); } PLAYERLIST_authed[playerid]=false; return 1; } public OnPlayerConnect(playerid) { if (PLAYERLIST_authed[playerid]==0){ if (udb_Exists(PlayerName(playerid))){ SystemMsg(playerid,"You have already registered, please /login [password] to login."); } else{ SystemMsg(playerid,"You do not have an account, use /register [password] to register then /login [password] to login."); } return 0; } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(login,5,cmdtext); dcmd(register,8,cmdtext); return 0; } 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; } dcmd_register(playerid, params[]) { if(pInfo[playerid][logged] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] You are already logged in"); if(udb_Exists(PlayerName(playerid))) return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] You are already registered with us"); if(udb_Create(PlayerName(playerid), params)) SendClientMessage(playerid,COLOR_BRIGHTRED,"[iNFO] You have registered a racing account"); dUserSetINT(PlayerName(playerid)).("score", 0); pInfo[playerid][logged]=1; return true; } dcmd_login(playerid, params[]) { if(pInfo[playerid][logged] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] You are already logged in"); if(!udb_Exists(PlayerName(playerid))) return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] You are not registered"); if(udb_CheckLogin(PlayerName(playerid), params)) { SetPlayerScore(playerid,dUserGetINT(PlayerName(playerid)).("score")),pInfo[playerid][logged]=1; return SendClientMessage(playerid,COLOR_TEMP,"[iNFO] You have logged into your racing account"); } return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] Login failed!"); } public OnPlayerDisconnect(playerid, reason) { // HERE IS HOW IT SAVES // all other disconnect code....... then > if(pInfo[playerid][logged] == 1)dUserSetINT(PlayerName(playerid)).("score", GetPlayerScore(playerid)); return 1; } Link to comment Share on other sites More sharing options...
Guest M3kill Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 Tohle nejde pise my tohle fgljkaiglb\f C:\Documents and Settings\Robert2\Pracovná plocha\DCVAZNE.pwn(667) : error 017: undefined symbol "PLAYERLIST_authed" C:\Documents and Settings\Robert2\Pracovná plocha\DCVAZNE.pwn(667) : warning 215: expression has no effect C:\Documents and Settings\Robert2\Pracovná plocha\DCVAZNE.pwn(667) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Robert2\Pracovná plocha\DCVAZNE.pwn(667) : error 029: invalid expression, assumed zero C:\Documents and Settings\Robert2\Pracovná plocha\DCVAZNE.pwn(667) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 omg Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 Tak řikej co tam má za chybu no ? když řikáš omg já ti vim.. Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 ja som to aj zkompiloval aj dal na server regol som sa to ma reglo dal som /login taq mi napisalo error skus si radsej najst new na http://forum.sa-mp.com/ Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 řiká tady omg a sám to neví btw opravim ti jeden error: new PLAYERLIST_authed[MAX_PLAYERS]; other sem dej řádky ... Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 viem to ti manik "lol" Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 17. Prosinec, 2009 Share Odesláno: 17. Prosinec, 2009 To tak prej umíš pawno na 90% =D to neumí nikdo z fora.. Link to comment Share on other sites More sharing options...
Guest carl1 Odesláno: 18. Únor, 2010 Share Odesláno: 18. Únor, 2010 mne to vypisuje errory a stale tyto: warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange") Link to comment Share on other sites More sharing options...
Guest D3luX Odesláno: 18. Únor, 2010 Share Odesláno: 18. Únor, 2010 tak si vytvor forwardy a nebude ti to hadzat errory.. Link to comment Share on other sites More sharing options...
tejpek 3 Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 mě to nechce vzít #include Link to comment Share on other sites More sharing options...
TWeak 5 Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 A máš ho vůbec xD ???? Link to comment Share on other sites More sharing options...
tejpek 3 Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 a co to je a kde to mam stahnout Link to comment Share on other sites More sharing options...
Guest D3luX Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 Link http://dracoblue.net/download/dutils-110/30/... Link to comment Share on other sites More sharing options...
tejpek 3 Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 a dubd -- ned 28. bře 2010 20:12:42 -- ted sem si stahnul i dini a hlasi me to: C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(162) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(247) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(248) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(250) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(251) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(253) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(253) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(255) : error 017: undefined symbol "params" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(255) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(257) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(257) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(264) : warning 225: unreachable code C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(264) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(265) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(267) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(267) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(269) : error 017: undefined symbol "params" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(269) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(271) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(273) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(277) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(279) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Administrator\Plocha\serverserver\MOD demokracie\baywiev production.pwn(281) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 21 Errors. -- ned 28. bře 2010 20:15:55 -- pls odpoved Link to comment Share on other sites More sharing options...
Guest Br4y3n Odesláno: 28. Březen, 2010 Share Odesláno: 28. Březen, 2010 Co takle skusit přidat stocky playername systemmsg ? Nadefinovat si login register do onplayercommandtext Link to comment Share on other sites More sharing options...
sneksnack 0 Odesláno: 10. Duben, 2010 Share Odesláno: 10. Duben, 2010 Chybky... C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(465) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(467) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(469) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(471) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(478) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(480) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(482) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(490) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jardo\Plocha\samp\pawno\Podzemie2.pwn(492) : error 017: undefined symbol "SystemMsg" Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 10. Duben, 2010 Share Odesláno: 10. Duben, 2010 si to radsej urob new GM ////////////////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...
sneksnack 0 Odesláno: 10. Duben, 2010 Share Odesláno: 10. Duben, 2010 OK... spojazdnil som to rovno v móde, ešte mám jednu otázku: Ako sa dajú ukladať premenné? (Tu sú dve dole...) new zabil[500][2]; new bomba[MAX_PLAYERS]; Link to comment Share on other sites More sharing options...
Guest Kubas Odesláno: 10. Duben, 2010 Share Odesláno: 10. Duben, 2010 OK... spojazdnil som to rovno v móde, ešte mám jednu otázku:Ako sa dajú ukladať premenné? (Tu sú dve dole...) new zabil[500][2]; new bomba[MAX_PLAYERS]; do OnplayerDisconnect dUserSetINT(PlayerName(playerid)).("zabil",zabil[playerid]); a do loginu zabil[playerid] = dUserINT(PlayerName(playerid)).("zabil"); a pak stejne akorad misto zabil das BOMBA Link to comment Share on other sites More sharing options...
sneksnack 0 Odesláno: 10. Duben, 2010 Share Odesláno: 10. Duben, 2010 Dik... na to som už prišiel... "lol" Link to comment Share on other sites More sharing options...
Guest Nightmare559 Odesláno: 12. Duben, 2010 Share Odesláno: 12. Duben, 2010 C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(3) : fatal error 100: cannot read from file: "dutils" poraďte pls -- pon 12. dub 2010 17:50:50 -- C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(142) : error 001: expected token: ";", but found "-identifier-" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(143) : warning 209: function "OnPlayerConnect" should return a value C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(150) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(157) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(159) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(159) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(161) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(170) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(172) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(172) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(174) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(176) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(178) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(182) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(184) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(194) : error 036: empty statement C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(195) : error 036: empty statement C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(291) : error 001: expected token: ";", but found "}" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(972) : error 021: symbol already defined: "strtok" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(987) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 21 Errors. PLS, PLS, PLS PORAĎTE, NEVIM CO TO JE, JÁ SEM ZAČÁTEČNÍK, TAK PLS PORAĎTE !!! díky za odpověď !!! Link to comment Share on other sites More sharing options...
sneksnack 0 Odesláno: 12. Duben, 2010 Share Odesláno: 12. Duben, 2010 Ako spraviť, aby ta registrácia bola povinná? :? Link to comment Share on other sites More sharing options...
Konvicka 0 Odesláno: 12. Duben, 2010 Share Odesláno: 12. Duben, 2010 public OnPlayerRequestSpawn(playerid) { if (!PLAYERLIST_authed[playerid]) { if(udb_Exists(PlayerName(playerid))) { GameTextForPlayer(playerid,"~g~P~w~rihlas se!",5000,5); SendClientMessage(playerid, COLOR_GREEN, "[ ! ] Nejsi prihlašen(a) , napiš /login heslo"); }else{ GameTextForPlayer(playerid,"~g~R~w~egistruj se!",5000,5); SendClientMessage(playerid,COLOR_GREEN, "[ ! ] Nejsi registrován(a), napiš /register heslo"); } return 0; } Link to comment Share on other sites More sharing options...
Guest Nightmare559 Odesláno: 12. Duben, 2010 Share Odesláno: 12. Duben, 2010 už nic mám tady novej problém public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,"~w~SA-MP: ~r~Las Venturas ~g~MoneyGrub",5000,5); SendPlayerFormattedText(playerid, "Welcome to Las Venturas MoneyGrub, For help type /help.", 0); gActivePlayers[playerid]++; gLastGaveCash[playerid] = GetTickCount(); return false PLAYERLIST_authed[playerid]=false; } //------------------------------------------------------------------------------------------------------ public OnPlayerDisconnect(playerid) { gActivePlayers[playerid]--; if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; } //------------------------------------------------------------------------------------------------------ } public OnPlayerCommandText(playerid, cmdtext[]) { 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é!"); C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(138) : error 004: function "SendPlayerFormattedText" is not implemented C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(142) : error 001: expected token: ";", but found "-identifier-" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(143) : warning 209: function "OnPlayerConnect" should return a value C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(150) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(156) : error 054: unmatched closing brace ("}") C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(159) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(161) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(161) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\Jirka\Plocha\SA-MP 2\pawno\lvdm1.pwn(163) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Errors. Poraďte pls a díky za odpověď ! 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