Jump to content

Sancky

Membru
  • Posts

    548
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by Sancky

  1. unde i optimizarea, ca n-o vad
  2. CMD:me(playerid, text[]) { if(!strlen(text)) return 1; new playerName[MAX_PLAYER_NAME], message[144]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); format(message, sizeof message, "> %s %s", playerName, text); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); for(new i = 0; i < MAX_PLAYERS; ++i) { if(IsPlayerStreamedIn(i, playerid) && IsPlayerInRangeOfPoint(i, 6.0, x, y, z)) SendClientMessage(i, COLOR_PURPLE, message); } return 1; }
  3. ai luat de aici, dar interactivitatea cu telefonul nu prea exista, mai mult dialoguri & shit
  4. uita-te la cei de la OVH, e o firma cunoscuta si serioasa. https://www.ovhcloud.com/en/vps/
  5. prea over enginereed, se poate itera doar prin vehiculele streamed ale playerului si verifici distanta dintre vehicul si player, iar daca distanta este mai mica decat ultima stocata in 'range', acela este cel mai apropiat vehicul de player, iar la final dupa ce se termina loop-ul, se returneaza vehiculul cel mai apropiat respectiv INVALID_VEHICLE_ID daca nu s-au gasit vehicule in apropiere. GetClosestVehicle(const playerid, Float:range) { if(!Iter_Count(StreamedVehicles[playerid])) return INVALID_VEHICLE_ID; new Float: vX, Float: vY, Float: vZ, Float: distance, vehid = INVALID_VEHICLE_ID; foreach(new vehicleid : StreamedVehicles[playerid]) { GetVehiclePos(vehicleid, vX, vY, vZ); distance = GetPlayerDistanceFromPoint(playerid, vX, vY, vZ); if(distance < range) { range = distance; vehid = vehicleid; } } return vehid; }
  6. ai gasit cel mai potrivit loc unde sa cauti investitori.. du-te pe forumul de rage sau pe discordul lor
  7. n am mai auzit asa ceva, eu stiam ca la inceput intr-un business trebuie sa investesti in asa fel incat sa l ridici, si dupa scoti profitul dar whatever
  8. nicaieri n-o sa ai succes daca nu investesti
  9. useless from my POV, would be nice if NPC can go anywhere with a dynamic path, not just a simple recorded playback, for e.g to go on player's location to pick it up and player set an specific marker position on map where location should be.
  10. don't post keyloggers here, if someone need the last version of the community compiler, is here: https://github.com/pawn-lang/compiler/releases
  11. da, nu trimiti query-ul catre mysql cum trebuie, acolo ai 'mysql_pquery(handle, "", "");', tu practic trimiti un query gol. pune mysql_pquery(handle, query);
  12. mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` ('name', 'password') VALUES ('%e', '%e')", getname(playerid), inputtext); aici ai pus apostrof la numele coloanelor, ori nu pui nimic, ori pui intre `` mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` (`name`, `password`) VALUES ('%e', '%e')", getname(playerid), inputtext);
  13. deci, scrii cod de la 0, dar nu stii sa rezolvi niste erori, sa nu mai zic ca nici macar escape nu folosesti peste input-urile unui player, si pe langa asta inserezi parola plain in db , a, si vezi ca ti ai cam dat datele mysql la public
×
×
  • 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.