Jump to content

Mihaela

Membru
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Mihaela

  1. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0); return 1; }
  2. Nick: Mihaela Problema: - Erori / warnings: error 010: invalid function or declaration Lini/script: public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) Ai incercat sa rezolvi singur ?: Da
  3. Nume: Mihaela Nume tutorial: Timer for Class Request Descriere: As dori si eu daca se poate un tutorial cum fac un timer pentru class request adica dupa x secunde sa apara OnPlayerRequestClass(playerid, classid) cu tot ce contine .
  4. Am pus return 1; la stock multumesc . puteti da T.C
  5. Nick: MihaelaRo Problema: Deci , atuncea cand dau sa selecteze numele gangului nu il selecteaza ... nu inteleg dece. Erori / warnings: - Lini/script: Comanda : CMD:og(playerid, params[]) { if(IsPlayerGangMember(playerid, Gang1)) { if(IsPlayerInRangeOfPoint(playerid, 10,2104.3799, 28.2700, 3.8400)) { MoveObject(Gate[0],2104.3799, 28.2700, 11.3244,5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000,6); return 1; } else if(IsPlayerInRangeOfPoint(playerid, 10,1962.3900, -88.6300, 4.8100)) { MoveObject(Gate[1],1962.3900, -88.6300, 12.2104,5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000,6); return 1; } } return 1; } stock : stock IsPlayerGangMember(playerid, gang_name[]) { new player_name[MAX_PLAYER_NAME], GQuery[100]; GetPlayerName(playerid,player_name,sizeof(player_name)); format(GQuery, sizeof(GQuery), "SELECT `gangname` FROM `gmembers` WHERE `playername` = '%s' AND `gangname` = '%s'", player_name, gang_name); Result = db_query( Database, GQuery ); new rows = db_num_rows( Result ); db_free_result(Result); if(!rows) return 0; else return ( 1 ); } #define Gang1 "Thug Life" Ai incercat sa rezolvi singur ?: Da
  6. Hey all , am si eu o problema cu ModelSelection cand dau la el sa selectez o masina , o spawneaza merge totul perfect doar ca...nu ma da in ea ... public OnPlayerModelSelection(playerid, response, listid, modelid) { new Float:X,Float:Y,Float:Z,Float:Angle; if(listid == vehlist) { if(response) { CreateVehicleEx(playerid,modelid, X,Y,Z+1, Angle, random(126), random(126), -1); } return 1; } stock CreateVehicleEx(playerid, vehicletype, Float:X, Float:Y, Float:Z, Float:rotation, color1, color2, respawn_delay) { MyVeh = CreateVehicle(vehicletype, X, Y, Z, rotation, color1, color2, respawn_delay); PutPlayerInVehicle(playerid, MyVeh, 0); return 1; } ce pot face? Nu inteleg din ce cauza nu functioneaza
  7. Mihaela

    LogIn

    Buna la toti , am editat pentru un prieten care este incepator in scripting , un server dar nici eu nu pot sa inteleg dece cand scrie orice parola ii da login succes , am incercat cu if(strcmp(IPass, inputtext, true) != 0) , if(strcmp(IPass, inputtext, true) == 1) , if(strcmp(IPass, inputtext, false) == 0) dar acelasi rezultat ce pot face ? if(dialogid == DIALOGID+67) { new IPass[128], userid, lstring[256], string[256]; //---------------------------------------------------------------------- userid = BUD::GetNameUID(PlayerName2(playerid)); BUD::GetStringEntry(userid, "APass", DB_Escape(IPass), 128); //---------------------------------------------------------------------- if(response == 0) Kick(playerid); else if(response) { if(strlen(inputtext) > 3) { if(strcmp(IPass, inputtext, true) != 0) { AccInfo[playerid][FailLogin]++; printf("LOGIN: Failed Login: %s. Wrong password (%s) (%d)", PlayerName2(playerid), inputtext, AccInfo[playerid][FailLogin]); if(AccInfo[playerid][FailLogin] == MAX_FAIL_LOGINS) { format(string, sizeof(string), "Player %s has been automatically kicked (Reason: Incorrect Passwords)", PlayerName2(playerid) ); SendClientMessageToAll(red, string); print(string); Kick(playerid); } format(lstring,256,"{FF9900}Sorry {FF0000}'%s'\n{FF9900}but you've entered the wrong password!\n\nPlease, re-enter your correct password below:",pName(playerid)); return ShowPlayerDialog(playerid,DIALOGID+67,DIALOG_STYLE_PASSWORD,"Login Error",lstring,"Login","Quit"); } else if(strcmp(IPass, inputtext, true) == 0) { SendClientMessage(playerid,-1,"Ai fost logat cu succes!"); } } else { AccInfo[playerid][FailLogin]++; //-------------------------------------------------------------- if(AccInfo[playerid][FailLogin] == MAX_FAIL_LOGINS) { format(string, sizeof(string), "Player %s has been automatically kicked (Reason: Incorrect Passwords)", PlayerName2(playerid) ); SendClientMessageToAll(red, string); print(string); Kick(playerid); } //-------------------------------------------------------------- format(lstring,256,"{FF9900}Sorry {FF0000}'%s'\n{FF9900}but you've entered the wrong password!\n\nPlease, re-enter your correct password below:",pName(playerid)); return ShowPlayerDialog(playerid,DIALOGID+67,DIALOG_STYLE_PASSWORD,"Login Error",lstring,"Login","Quit"); } } } EDIT: nu mai este nevoie , puteti sa imi spuneti cum sa fac sa verifice daca este scris sau nu acesta de la "APass" ?
  8. da...da problema este ca nu stiu sa folosesc asta walk_OnPlayerKeyStateChange ce fac cu ea...si astea , ma poate ajuta cineva va rog ?
  9. FULL EDIT: Nu merge de loc , orice stil as alege tot default merge :| si imi scrie symbol is never used: "walk_OnPlayerKeyStateChange" ma poate ajuta cineva ? sami dea un exemplu...ce se face cu walk_OnPlayerKeyStateChange in fine intelegeti voi
  10. Am fost rugata de catre phoenix sa iti comunic sa intri pe mess ca te ajuta el . PS: Poti spune sa dea T / C .
  11. Buna seara la toti , am intalnit o dificultate la systemul de walk , cand imi selectez un mod de mers , imi merge singur in acel mod...fara sa apas vreo tasta . Cum as putea face sa mearga in acel mod , doar atuncea cand apas pe ALT ? Eu am doar la dialog response modurile de walk if(listitem == 0) { ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1); } if(listitem == 1) { ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1); } Multumesc .
  12. Mihaela

    MoveStats

    puteti da T/C am rezolvat asa de ex : gkills = BUD::GetIntEntry(moveid, "Kills"); gkills2 = BUD::GetIntEntry(moverid, "Kills"); tkills = (gkills += gkills2);
  13. Mihaela

    MoveStats

    nu am inteles nimic....nu se poate sa fac ceva de genu' BUD::MultiSet(moveid+moverid ... nu stiu...
  14. Mihaela

    MoveStats

    Buna seara la toti , am intalnit o problema pe care nu stiu sa o rezolv ... ma puteti ajuta voi va rog? Chestia e ca vreau sa dea + stats ... adica eu daca am ceva status gen : 100 kills , 100 death si trimit de pe alt account 300 kills si 300 death ( cu movestats ) sa dea +...adica sa fie pe contul trimis 400 kills si 400 death. else if(ems == 1) { ems = 0; //-------------------------------------------------------------- BUD::MultiSet(moveid, "iiiiiiiiiiiii", "EnMS", ems, "Donator", AccInfo[playerid][donator], "Kills", AccInfo[playerid][Kills], "Deaths", AccInfo[playerid][Deaths], "Hours", AccInfo[playerid][hours], "Respect", AccInfo[playerid][Respectpl], "NegRespect", AccInfo[playerid][Respectmn], "Score", GetPlayerScore(playerid), "Money", GetPlayerMoney(playerid), "Coins", AccInfo[playerid][Coins], "SPoints", pinfo[playerid][XPoints], "DriftP", pinfo[playerid][DPoints], "RaceP", pinfo[playerid][RPoints]); //-------------------------------------------------------------- BUD::MultiSet(moverid, "iiiiiiiiiiii", "Kills", 0, "Deaths", 0, "Score", 0, "Money", 0, "Hours", 0, "Respect", 0, "NegRespect", 0, "SPoints", 0, "DriftP", 0, "RaceP", 0, "Coins", 0, "Donator", 0); //-------------------------------------------------------------- AccInfo[playerid][Kills] = 0; AccInfo[playerid][Deaths] = 0; AccInfo[playerid][Respectpl] = 0; AccInfo[playerid][Coins] = 0; AccInfo[playerid][Respectmn] = 0; AccInfo[playerid][hours] = 0; pinfo[playerid][XPoints] = 0; pinfo[playerid][DPoints] = 0; pinfo[playerid][RPoints] = 0; SetPlayerMoney(playerid, 0); SetPlayerScore(playerid, 0); //-------------------------------------------------------------- format(movestr, 128, "You have Successfully Moved your Stats to {FF0000}%s{FF9900}!", inputtext); SendClientMessage(playerid, orange, movestr);
  15. gamemodul...nu are fila .amx si nu are ce "citi" sau este trecut in server.cfg alt nume...fata de numele gm'ului
  16. Mihaela

    Sqlite

    :| inteleg ca tu folosesti dini dar eu sunt pe sqlite scrie si la numele postului :| si app...uite merge perfect restu doar ca la comenzi nu stiu ce are http://postimg.org/image/q09cxi33h/ http://postimg.org/image/6jzt6rew3/ http://postimg.org/image/q0583dfav/
  17. Uitete in server_log ce scrie :|
  18. Mihaela

    Sqlite

    am spus ca se creeaza merge totu perfect DOAR CA NU CITESTE DACA PLAYERU ESTE IN RESPECTIVU GANG CITESTE DOAR DIN GANGU CU NUMELE "gang" ATAT nu stiu dece
  19. Mihaela

    Sqlite

    am 3 ganguri ... la fiecare comanda (og,cg,blowgate,repairgate) dar nu merge comanda decat la al 2-lea gang .. (adica cel din mijloc) si nu stiu dece... si am toate asa... if(..... else if(.... else if(... CMD:og(playerid, params[]) { if(IsPlayerGangMember(playerid, "Test")) { if(IsPlayerInRangeOfPoint(playerid, 20, -1987.9939, -1000.6446, 34.1694)) { MoveObject(pstaff,-1987.9939, -1000.6446, 26.4083,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } else if(IsPlayerInRangeOfPoint(playerid, 20, -1986.7006, -739.3145, 32.6947)) { MoveObject(pstaff2,-1986.7006, -739.3145, 26.5725,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } } else if(IsPlayerGangMember(playerid, "Gang")) { if(IsPlayerInRangeOfPoint(playerid, 20,1446.4800, 663.3500, 13.2300)) { MoveObject(pthug,1446.4800, 663.3500, 5.0630,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } else if(IsPlayerInRangeOfPoint(playerid, 20,1379.8400, 769.4716, 10.9618)) { MoveObject(pthug2,1379.8400, 769.4716, 5.3137,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } } else if(IsPlayerGangMember(playerid, "Pro")) { if(IsPlayerInRangeOfPoint(playerid, 30,1014.9017, -2549.5063, 1.8635)) { MoveObject(ptest,1014.8335, -2567.0544, 9.4962,4.5); MoveObject(ptest2,1014.8761, -2558.3257, 9.4962,4.5); MoveObject(ptest3,1014.9017, -2549.5063, 9.4962,4.5); MoveObject(ptest4,1014.8791, -2540.6987, 9.4962,4.5); MoveObject(ptest5,1014.8402, -2531.8809, 9.4962,4.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } } else return SendClientMessage(playerid,red,"ERROR: You don't have gang!"); return ( 1 ); } Test , Gang , Pro sunt numele de la ganguri...
  20. Mihaela

    Sqlite

    Buna seara la toti , am o problema cu database...nu stiu din ce cauza nu citeste numele gangului...a respectivului player... stock IsPlayerGangMember(playerid, gang_name[]) { new player_name[MAX_PLAYER_NAME], GQuery[100]; GetPlayerName(playerid,player_name,sizeof(player_name)); format(GQuery, sizeof(GQuery), "SELECT `gangname` FROM `gmembers` WHERE `playername` = '%s' AND `gangname` = '%s'", player_name, gang_name); Result = db_query( Database, GQuery ); new rows = db_num_rows( Result ); db_free_result(Result); if(!rows) return 0; else return ( 1 ); } Iar la comanda... CMD:og(playerid, params[]) { if(IsPlayerGangMember(playerid, "Test")) { if(IsPlayerInRangeOfPoint(playerid, 20, -1987.9939, -1000.6446, 34.1694)) { MoveObject(ptest,-1987.9939, -1000.6446, 26.4083,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } else if(IsPlayerInRangeOfPoint(playerid, 20, -1986.7006, -739.3145, 32.6947)) { MoveObject(ptest2,-1986.7006, -739.3145, 26.5725,2.5); GameTextForPlayer(playerid, "~n~~r~Gate is~n~~y~Opening", 3000, 3); return 1; } else return SendClientMessage(playerid,red, "You are not near you'r gate!"); } else return SendClientMessage(playerid,red,"ERROR: You are not in this gang!"); } cand dau /og imi spune "You are not in this gang!" cu toate ca am acel gang creeat...si cu numele Test m-am uitat in database , gang-ul este creeat...gmembers , gangs la fel...merge totu perfect doar ca nu "citeste" dc?
  21. Am dat edit acuma...las 2shared dar pe viitor voi folosi solid
  22. + verifica numele GM-ului
  23. Coins - coins Kills - Kills BKSpree - Best Killing Spree Dpoints - drift points hours - hours... RPoints - race points... XPoints - stunt points... Respectpl - respect + Respectmn - respect - Death - death altceva...?
×
×
  • 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.