Jump to content

xxSPEEDYxx

Membru
  • Posts

    1.614
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by xxSPEEDYxx

  1. 3/5...chiar nu arata a tut...
  2. alta data sa dai si REPORT!...lasa nu mai da am dat eu... EDIT: nu merge butonul report.... :undecided:
  3. da am eu una...foloseste SQL uite Aici un tutorial!
  4. uite incearca asa: #include < a_samp > #include < zcmd > #include < Dini > #define COLOR_RED 0xE60000FF #define COLOR_GREEN 0x00FF00FF #pragma tabsize 0 #define PlayerFile "/AccountFile/%s.ini" enum LevelAcc { Level, Experience, }; new LevelPlayer[ MAX_PLAYERS ][ LevelAcc ]; public OnPlayerConnect( playerid ) { new Acc[256]; new name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerName(playerid,name,sizeof(name)); GetPlayerIp(playerid,ip,sizeof(ip)); format( Acc,sizeof( Acc ), PlayerFile, name ); if(dini_Exists("Acc")) { dini_Create(Acc); dini_IntSet( Acc, "Experiece:", 0 ); dini_IntSet( Acc, "Level:", 0 ); LevelPlayer[ playerid ][ Experience ] = dini_Int( Acc, "Experience:" ); LevelPlayer[ playerid ][ Level ] = dini_Int( Acc, "Level:" ); } else { LevelPlayer[ playerid ][ Level ] = dini_Int( Acc,"Level:" ); LevelPlayer[ playerid ][ Experience ] = dini_Int( Acc,"Experience:" ); } return 1; } public OnPlayerDisconnect(playerid,reason) { new Acc[256]; new name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerIp(playerid,ip,sizeof(ip)); GetPlayerName(playerid,name,sizeof(name)); format(Acc,sizeof(Acc),PlayerFile,name); if(!dini_Exists(Acc)) { } else { dini_IntSet( Acc,"Level:", LevelPlayer[playerid][Level] ); dini_IntSet( Acc,"Experience:", LevelPlayer[playerid][Experience] ); } } public OnPlayerDeath(playerid,killerid,reason) { LevelPlayer[playerid][Experience] -=1; LevelPlayer[killerid][Experience] +=1; } CMD:mylevel(playerid,params[]) { new string[256]; format(string,sizeof(string),"Your Level %d.",LevelPlayer[playerid][Level]); SendClientMessage(playerid,COLOR_GREEN,string); return 1; } CMD:myexp(playerid,params[]) { new string[256]; format(string,sizeof(string),"Your Exp:%d.",LevelPlayer[playerid][Experience]); SendClientMessage(playerid,COLOR_GREEN,string); return 1; } CMD:levelup(playerid,params[]) { if(LevelPlayer[playerid][Experience] >=500) { LevelPlayer[playerid][Level] +=1; new string[256]; format(string,sizeof(string),"You have advanced to %d level",LevelPlayer[playerid][Experience]); SendClientMessage(playerid,COLOR_RED,string); } else SendClientMessage(playerid,-1,"You don't have exp to advance to next level!"); return 1; } CMD:startlevel(playerid,params[]) { LevelPlayer[playerid][Level] =1; SendClientMessage(playerid,COLOR_RED,"You seted your level start to 1!"); } PS. - ti lam indentitat un pic pe unde am umblat :P
  5. iti da ceva errori la compilare?
  6. ce system de salvarea datelor folosesti: dini,Y_INI,SQL...? :undecided:
  7. Asa este definit in streamer... CreateDynamicPickup( modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0 ); incearca sa pui acolo la al tau asa: CreateDynamicPickup(1239, 23, 918.2713, -1252.1028, 16.2109, 0, -1, -1, 200.0); si vezi daca merge... EDIT: al 800-lea meu post :D
  8. fumatul dauneaza grav pe****lui ) tare TD-ul 5/5 :D
  9. OFF:What?...nu am inteles nimica... ON:cat despre mapa GJ...5/5
  10. ............destul de frumos 4/5...........
  11. in scriptu acela este un dialog?...daca da ii prea lung stringu din el trebuie sa ii dai strcat! daca nu uite aici: NO 1. Aici
  12. @Ex15xE ai bagat ceva un FS dupa cum vad in GM si nu ai pus din FS tot ce trebuie... ca sa rezolvi ar trebuii sa pui asta(dupa cum vad in errors): enum bInfo { bMessage, bVirWorld, bBuyPrice, bLevelNeeded, bEntranceX, bEntranceY, bEntranceZ, }; new BizzInfo[ MAX_PLAYERS ][ bInfo ];
  13. http://wiki.sa-mp.com/wiki/Strtok nu ai definit strtok...baga asta in script: strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
  14. macar trebuia sa dai edit sa spui ca te-am ajutat eu:P...
  15. baga la plugins asa: plugins streamer sscanf audio si vezi daca mai face asa...
  16. tu esti turc?? rock a zis ca: si aia zic si eu...de unde sa stim sa ghicim??
  17. spunene ce pluginuri ai in folderu plugins!
  18. am vrut sa spun daca stii sa il configurezi...) lol...
  19. mda..daca stii sa il configurezi cum trebuie nu e:P...
  20. pai faci asa: if(!strcmp(cmdtext, "/jail", true, 5)) { if ( GetPlayerSkin( playerid ) == 218 ) // 218 semnifica skinul poti sa schimbi ce skin vrei...de ex 0 sau 1, 2... { if ( IsPlayerAdmin( playerid ) ) { if ( !strlen( cmdtext[ 6 ] ) ) { SendClientMessage( playerid, COLOR_ORED, "Usage: /jail [ playerid ]" ); return 1; } new ID = strval( cmdtext[ 6 ] ); new strv[ 170 ]; if ( IsPlayerConnected( ID ) ) { format( strv, 170, "~ You have been jailed" ); SendClientMessage( ID, COLOR_ORANGE, strv ); SetPlayerPos( ID, 264.8763,81.9862,1001.0390 ); SetPlayerInterior( ID, 6 ); } } return SendClientMessage( playerid, COLOR_RED, "Tu nu esti admin!" ); } return SendClientMessage( playerid, COLOR_RED, "Nu ai skinul care trebuie pentru a folosi comanda! " );
  21. greu ii sa cauti nu Users? sau asta: JunkBuster9: http://forum.sa-mp.com/showthread.php?t=71877&highlight=junkbuster
  22. incearca sa adaugi cate una cate una si vezi la cate te opresti...daca nu...hmm...incearca sa pui new query mai mare...poate ii de la ala.. new Query[ 1024 ];// sau 2048 cat vrei
  23. puteai sa-i recomanzi unu:P... poftim aici din astea doua alegi tu unu ) http://forum.sa-mp.com/showthread.php?t=182435&highlight=house sau http://forum.sa-mp.com/showthread.php?t=23051&highlight=house
  24. da-ne server.log...dar numai ultima pornire...sa vedem...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.