Jump to content

Mihaela

Membru
  • Posts

    34
  • Joined

  • Last visited

About Mihaela

  • Birthday 02/09/1996

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Mihaela's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  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
×
×
  • 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.