Mmartin 0 Odesláno: 7. Listopad, 2009 Share Odesláno: 7. Listopad, 2009 Hmmm, mi to pise C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(165) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(166) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(167) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(173) : error 017: undefined symbol "params" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(175) : error 017: undefined symbol "params" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(181) : warning 225: unreachable code C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(181) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(186) : error 017: undefined symbol "params" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(188) : error 017: undefined symbol "params" C:\Documents and Settings\Mmartin\Desktop\ss\gamemodes\roleplay.pwn(199) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 8 Errors. mam nadefinovane #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 hned pod vsetkymi #include, a vsetko podla tutu includy dudb a dutils mam Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 7. Listopad, 2009 Share Odesláno: 7. Listopad, 2009 Do onplayercommandtext: dcmd(register,8, cmdtext); dcmd(login,5, cmdtext); Do prikazu k prikazu kde ty hadze params: #pragma unused params Link to comment Share on other sites More sharing options...
Guest Calebs Odesláno: 7. Listopad, 2009 Share Odesláno: 7. Listopad, 2009 a nechete prosím vác někdo napsat tut na dialgovou registraci?? Link to comment Share on other sites More sharing options...
Mikser 0 Odesláno: 7. Listopad, 2009 Share Odesláno: 7. Listopad, 2009 Nechci tě sklamat, ale asi se nikomu nechce xD, ještě to tady myslim moc lidí neovládá natolik aby psali tuty... tady de spíš o to, aby to někdo přeložil ze samp forka, jestli to tam teda je ( o tom ale nepochybuju ) // "ještě to tady myslim moc lidí neovládá" je myšleno jakože moc lidí neovládá 0.3, pawno tady zvládá hodně lidí, nechtěl jsem urazit ... Link to comment Share on other sites More sharing options...
Guest Calebs Odesláno: 7. Listopad, 2009 Share Odesláno: 7. Listopad, 2009 dobře tak jsem zkoušel udělat registraci podle wiki ale nějak jsem to zvoral a jak jsem se snažil to oprait tak mi to moc nešlo píše mi to: D:\Documents and Settings\Calebs\Plocha\test.pwn(276) : error 017: undefined symbol "udb_hash" D:\Documents and Settings\Calebs\Plocha\test.pwn(278) : error 017: undefined symbol "pstat" D:\Documents and Settings\Calebs\Plocha\test.pwn(278) : warning 215: expression has no effect D:\Documents and Settings\Calebs\Plocha\test.pwn(278) : error 001: expected token: ";", but found "]" D:\Documents and Settings\Calebs\Plocha\test.pwn(278) : error 029: invalid expression, assumed zero D:\Documents and Settings\Calebs\Plocha\test.pwn(278) : fatal error 107: too many error messages on one line a tady jsou řádký: if(dialogid ==2) { TogglePlayerControllable(playerid, 0); new pName[24], str[128]; GetPlayerName(playerid, pName, sizeof(pName)); format(str, sizeof(str),"players/%s.ini",pName); new PW[256]; PW = dini_Get(str,"password"); if(response == 1) { 276 if(strval(inputtext) == udb_hash(PW)) // successful login { 278 pstat[playerid][skin] = dini_Int(str,"skin"); pstat[playerid][cash] = dini_Int(str,"cash"); pstat[playerid][bank] = dini_Int(str,"bank"); pstat[playerid][posX] = dini_Int(str,"posX"); pstat[playerid][posY] = dini_Int(str,"posY"); pstat[playerid][posZ] = dini_Int(str,"posZ"); GivePlayerMoney(playerid, pstat[playerid][cash]); SetPlayerSkin(playerid, pstat[playerid][skin]); SetPlayerPos(playerid, pstat[playerid][posX], pstat[playerid][posY], pstat[playerid][posZ]); } else { ShowPlayerDialog(playerid, 2, 1,"Wrong Password", "That Password is incorrect. Please try again.","login", "cancel"); } return 1; } } return 1; } Link to comment Share on other sites More sharing options...
Mmartin 0 Odesláno: 8. Listopad, 2009 Share Odesláno: 8. Listopad, 2009 Do onplayercommandtext: dcmd(register,8, cmdtext); dcmd(login,5, cmdtext); Do prikazu k prikazu kde ty hadze params: #pragma unused params To dcmd v onplayercmdtext som mal, aaa to #pragma som pridal, ale hadze mi to dalsi error mam to presne takto public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(register,8, cmdtext); dcmd(login,5, cmdtext); dcmd_register(playerid,params[]) { #pragma unused 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 false; } Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Čaute lidi při dodáni /register a /login se mi piše chyba v #include a #include pomohl by mi někdo s touto chybou ?? :?: Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Riadky + Chyby inak ti nepomozeme Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Stahni si ty includy Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 a kde to stahnu prosím vás ,? Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 http://Www.google.sk tam si daj DUDB download a potom DUTILS download Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Díky moc borče Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 pomozte preco mi vzdy pise ret_memcpy ked pridam includy Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 asi to musis nadefinovat ale ja nwm jak xD Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Použi toto: #pragma unused ret_memcpy Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Prosím vás podivejte se na to ja už si nevim rady co s tím dutlis ////////////////Include//////////////////////////// #include ///to už v mode asi mate tak si to mužete smazat #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 defined _dutils_included #endinput #endif #define _dutils_included #pragma library dutils #define MAX_STRING 255 #if !defined floatstr native Float:floatstr(const string[]); #endif #pragma tabsize 0 new PRIVATE_Last_Money[MAX_PLAYERS]; stock isNumeric(const string[]) { new length=strlen(string); if (length==0) return false; for (new i = 0; i < length; i++) { if ( (string > '9' || string < '0' && string!='-' && string!='+') // Not a number,'+' or '-' || (string=='-' && i!=0) // A '-' but not at first. || (string=='+' && i!=0) // A '+' but not at first. ) return false; } if (length==1 && (string[0]=='-' || string[0]=='+')) return false; return true; } #pragma unused isNumeric /* * Originally created by mabako, tuned by DracoBlue */ stock mktime(hour,minute,second,day,month,year) { new timestamp2; timestamp2 = second + (minute * 60) + (hour * 3600); new days_of_month[12]; if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) { days_of_month = {31,29,31,30,31,30,31,31,30,31,30,31}; // Schaltjahr } else { days_of_month = {31,28,31,30,31,30,31,31,30,31,30,31}; // keins } new days_this_year = 0; days_this_year = day; if(month > 1) { // No January Calculation, because its always the 0 past months for(new i=0; i days_this_year += days_of_month; } } timestamp2 += days_this_year * 86400; for(new j=1970;j timestamp2 += 31536000; if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) timestamp2 += 86400; // Schaltjahr + 1 Tag } return timestamp2; } #pragma unused mktime /** * Return if a Email is valid or not * @param value */ stock ValidEmail(email[]) { new len=strlen(email); new cstate=0; new i; for(i=0;i if ((cstate==0 || cstate==1) && (email>='A' && email<='Z') || (email>='a' && email<='z') || (email=='.') || (email=='-') || (email=='_')) { } else { // Ok no A..Z,a..z,_,.,- if ((cstate==0) &&(email=='@')) { // its an @ after the name, ok state=1; cstate=1; } else { // Its stuff which is not allowed return false; } } } if (cstate<1) return false; if (len<6) return false; // A toplevel domain has only 3 to 4 signs :-) if ((email[len-3]=='.') || (email[len-4]=='.') || (email[len-5]=='.')) return true; return false; } #pragma unused ValidEmail /** * Return a timestamp */ stock Time() { new hour,minute,second; new year, month,day; gettime(hour, minute, second); getdate(year, month, day); return mktime(hour,minute,second,day,month,year); } #pragma unused Time /** * Return a timestamp */ Now() { new hour,minute,second; new year, month,day; gettime(hour, minute, second); getdate(year, month, day); return mktime(hour,minute,second,day,month,year); } #pragma unused Now /** * Return the value of an hex-string * @param string */ HexToInt(string[]) { if (string[0]==0) return 0; new i; new cur=1; new res=0; for (i=strlen(string);i>0;i--) { if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10); cur=cur*16; } return res; } #pragma unused HexToInt /** * Return the string as int * @param string */ StrToInt(string[]) { return strval(string); } #pragma unused StrToInt /** * Return the value as string * @param value */ IntToStr(value) { new tmp[MAX_STRING]; valstr(tmp, num); return tmp; } #pragma unused IntToStr /** * Return the truncated value * @param Float:value */ trunc(Float:value) { return floatround(value,floatround_floor); } #pragma unused trunc /** * Sets money for player * @param playerid * howmuch */ SetPlayerMoney(playerid,howmuch) { PRIVATE_Last_Money[playerid]=howmuch; GivePlayerMoney(playerid,howmuch-GetPlayerMoney(playerid)); } #pragma unused SetPlayerMoney /** * Copies a file (Source file won't be deleted!) * @param oldname * newname * @requires WINDOWS */ fcopy(oldname[],newname[]) { new File:ohnd,File:nhnd; if (!fexist(oldname)) return false; ohnd=fopen(oldname,io_read); nhnd=fopen(newname,io_write); new buf2[1]; new i; for (i=flength(ohnd);i>0;i--) { fputchar(nhnd, fgetchar(ohnd, buf2[0],false),false); } fclose(ohnd); fclose(nhnd); return true; } #pragma unused fcopy /** * Copies a textfile (Source file won't be deleted!) * @param oldname * newname */ fcopytextfile(oldname[],newname[]) { new File:ohnd,File:nhnd; if (!fexist(oldname)) return false; ohnd=fopen(oldname,io_read); nhnd=fopen(newname,io_write); new tmpres[MAX_STRING]; while (fread(ohnd,tmpres)) { StripNewLine(tmpres); format(tmpres,sizeof(tmpres),"%s\r\n",tmpres); fwrite(nhnd,tmpres); } fclose(ohnd); fclose(nhnd); return true; } #pragma unused fcopytextfile /** * Renames a file (Source file will be deleted!) * @param oldname * newname * @requires WINDOWS (because fcopy does) */ frename(oldname[],newname[]) { if (!fexist(oldname)) return false; fremove(newname); if (!fcopy(oldname,newname)) return false; fremove(oldname); return true; } #pragma unused frename /** * Strips Newline from the end of a string. * Idea: Y_Less, Bugfixing (when length=1) by DracoBlue * @param string */ stock StripNewLine(string[]) { new len = strlen(string); if (string[0]==0) return ; if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) { string[len - 1] = 0; if (string[0]==0) return ; if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0; } } #pragma unused StripNewLine /** * Copies items from one array/string into return. * @param source * index (where to start, 0 is first) * numbytes (how much) */ ret_memcpy(source[],index=0,numbytes) { new tmp[MAX_STRING]; new i=0; tmp[0]=0; if (index>=strlen(source)) return tmp; if (numbytes+index>=strlen(source)) numbytes=strlen(source)-index; if (numbytes<=0) return tmp; for (i=index;i tmp[i-index]=source; if (source==0) return tmp; } tmp[numbytes]=0; return tmp; } #pragma unused ret_memcpy /** * Copies items from one array/string into another. * @param dest * source * count */ stock copy(dest[],source[],count) { dest[0]=0; if (count<0) return false; if (count>strlen(source)) count=strlen(source); new i=0; for (i=0;i dest=source; if (source==0) return true; } dest[count]=0; return true; } #pragma unused copy /** * Deletes the first 'count' items of a array/string * @param string[] * count */ stock delete(string[],count) { new tmp[MAX_STRING]; tmp[0]=0; if (count<=0) { format(tmp,sizeof(tmp),"%s",string); return tmp; } tmp=ret_memcpy(string,count,strlen(string)); return tmp; } #pragma unused delete /** * Sets a string's value to source. * @param dest * source * count */ stock set(dest[],source[]) { new count = strlen(source); new i=0; for (i=0;i dest=source; } dest[count]=0; } #pragma unused set /** * Checks wether two strings are equal (case insensetive) * @param str1 * str2 */ stock equal(str1[],str2[],bool:ignorecase) { if (strlen(str1)!=strlen(str2)) return false; if (strcmp(str1,str2,ignorecase)==0) return true; return false; } #pragma unused equal /** * Returns an element of a string splitted by ' ', default index is 0. * @param string * index */ strtok(const string[], &index,seperator=' ') { new length = strlen(string); new offset = index; new result[MAX_STRING]; while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; if ((index < length) && (string[index] == seperator)) { index++; } return result; } #pragma unused strtok stock mod(up,down) { return up-(floatround((up/down),floatround_floor))*down; } #pragma unused mod stock div(up,down) { return (floatround((up/down),floatround_floor)); } #pragma unused div /** * Returns a hashed value in adler32 as int * @param buf */ stock num_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; } #pragma unused num_hash /** * Returns a hashed value in adler32 as string * @param buf */ stock hash(str2[]) { new tmpdasdsa[MAX_STRING]; tmpdasdsa[0]=0; valstr(tmpdasdsa,num_hash(str2)); return tmpdasdsa; } #pragma unused hash /** * Returns a string which has 'newstr' where 'trg' was before * @param trg * newstr * src */ strreplace(trg[],newstr[],src[]) { new f=0; new s1[MAX_STRING]; new tmp[MAX_STRING]; format(s1,sizeof(s1),"%s",src); f = strfind(s1,trg); tmp[0]=0; while (f>=0) { strcat(tmp,ret_memcpy(s1, 0, f)); strcat(tmp,newstr); format(s1,sizeof(s1),"%s",ret_memcpy(s1, f+strlen(trg), strlen(s1)-f)); f = strfind(s1,trg); } strcat(tmp,s1); return tmp; } #pragma unused strreplace /** * Returns the string with lowercase * @param txt */ strlower(txt[]) { new tmp[MAX_STRING]; tmp[0]=0; if (txt[0]==0) return tmp; new i=0; for (i=0;i tmp=tolower(txt); } tmp[strlen(txt)]=0; return tmp; } #pragma unused strlower /** * Returns the string with uppercase * @param txt */ strupper(txt[]) { new tmp[MAX_STRING]; tmp[0]=0; if (txt[0]==0) return tmp; new i=0; for (i=0;i tmp=toupper(txt); } tmp[strlen(txt)]=0; return tmp; } #pragma unused strupper ////////////If Define´s///////////////////////////:D //--------------------------------------------------------- // // Realny a testovaci zivot je od ORIKA // VSECHNA PRAVA VYHRAZENA //--------------------------------------------------------- #include #include #define COLOR_RED 0xAA3333AA #define COLOR_BLUE 0x0000FFAA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_LTGREEN 0x00FF00FF #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_PURPLE 0x9900FFAA #define COLOR_BROWN 0x993300AA #define COLOR_ORANGE 0xFF9933AA #define COLOR_CYAN 0x99FFFFAA #define COLOR_TAN 0xFFFFCCAA #define COLOR_PINK 0xFF66FFAA #define COLOR_KHAKI 0x999900AA #define COLOR_LIME 0x99FF00AA #define COLOR_BLACK 0x000000AA #define COLOR_TURQ 0x00A3C0AA #pragma tabsize 0 forward clock(); #define Prachy 85000 main(){} forward SetupPlayerForClassSelection(playerid); public OnPLayerDisconect(playerid) if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; public OnPlayerConnect(playerid) { SendClientMessage(playerid,COLOR_BLUE,"Nazdarek vitej na serveru!"); GameTextForPlayer(playerid,"Real Life By ORIK",1000,5); SendClientMessage(playerid,COLOR_BLUE,"Jak vidis je to tu nove.. tak /prikazi"); new novyhrac[100]; GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "%s se Prave pripojil", novyhrac); SendClientMessageToAll(COLOR_RED, novyhrac); } //------------------------------------------------------------------ public OnPlayerDeath(playerid) { SendClientMessage(playerid,COLOR_RED,"Zemrel si !"); } public OnPlayerSpawn(playerid) { SendClientMessage(playerid,COLOR_YELLOW,"Spawnovani dokonceno"); GivePlayerMoney(playerid, Prachy); clock(); } public OnGameModeInit() { SetGameModeText("Real Life By orik"); AddPlayerClass(265,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(266,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(267,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(268,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(269,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(270,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(271,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(272,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(280,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(281,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(282,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(283,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(284,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(285,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(286,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(287,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(254,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(255,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(256,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(257,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(258,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(259,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(260,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(261,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(262,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(263,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(264,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(274,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(275,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(276,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(1,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(2,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(290,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(291,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(292,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(293,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(294,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(295,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(296,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(297,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(298,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); AddPlayerClass(299,-1973.822, 289.7898, 35.17188, 1.596141,0,0,24,300,-1,-1); } public clock(){ new Text:Clock; TextDrawDestroy(Clock); new hour,minute,second; new string[256]; gettime(hour,minute,second); if (minute <= 9){format(string,25,"%d:0%d",hour,minute);} else {format(string,25,"%d:%d",hour,minute);} TextDrawHideForAll(Clock); Clock = TextDrawCreate(547.0, 24.0, string); TextDrawLetterSize(Clock, 0.6, 1.8); TextDrawFont(Clock, 3); TextDrawSetOutline(Clock, 2); TextDrawShowForAll(Clock); SetTimer("clock",60000,0); return 1; } /////////////////////////////////OnplayerCommandText zde--/////////////////// 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é!"); } dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 } //////------------------------------------------------------------------------ public SetupPlayerForClassSelection(playerid) { SetPlayerPos(playerid,1784.1951,-1898.7616,13.3924); SetPlayerCameraPos(playerid,1785.9059,-1902.5507,13.3936); SetPlayerCameraLookAt(playerid,1784.1951,-1898.7616,13.3924); } //------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
rEf 53 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Dík za mod "lol" Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 lol ten includ sa nevklada do mudu tak že ho tam podavaš všade. Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Prosím pomožte mi pls Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 a nechtěl by jsi mi to prosím tě trochu spracovat pls ja už nevim co dal Link to comment Share on other sites More sharing options...
rEf 53 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Include sa dává do includes v složce pawno kkt Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Ako vidim to nieje tvoj mod je to nejaky Americky a nechce samy stym yebať. čo ja viem čo stym maš nwm maš tam bordel. Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 jo ale ja mam server přes Crazyhost.cz víš tak jak pls Link to comment Share on other sites More sharing options...
rEf 53 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Ako vidim to nieje tvoj mod je to nejaky Americky a nechce samy stym yebať. čo ja viem čo stym maš nwm maš tam bordel. Jn keby tam nemal takovej bordel tak bych se vyznal ale v tomto som zamotanej "lol" Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 a mohl by jsi mi urobiť nějaky mod 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