Jump to content

Silvian

Membru
  • Posts

    62
  • Joined

  • Last visited

    Never

Everything posted by Silvian

  1. Ia incearca asa: public IsATruck(carid) { if(carid == truckcar1 || carid == truckcar2 || carid == truckcar3 || carid == truckcar4) { return 1; } return 0; } Si la /load: if(tmpcar == truckcar1 || tmpcar == truckcar2 || tmpcar == truckcar3 || tmpcar == truckcar4)
  2. La comanda /load, in loc de: if(tmpcar < truckcar2 || tmpcar > truckcar4) pune if(tmpcar >= truckcar1 && tmpcar <= truckcar4) Iar la IsATruck pune cum ti-a dat LeoN.
  3. Te referi la sageata galbena? Daca da: http://wiki.sa-mp.com/wiki/DisableInteriorEnterExits
  4. sterge "forward OnPlayerEnterRaceCheckpoint(playerid)"
  5. incearca GivePlayerMoney(i, 50000);
  6. Incearca asa: new playahealth = GetPlayerHealth(playerid, Health) - vehHealth; SetPlayerHealth(playerid, playahealth);
  7. http://wiki.sa-mp.com/wiki/MySQL http://wiki.sa-mp.com/wiki/MySQL_Tutorial
  8. http://www.sa-mp.ro/forum/index.php/topic,18992.0.html
  9. La OnPlayerRequestClass sterge: PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
  10. Ai gresit functia. De fapt este: StopAudioStreamForPlayer(playerid);
  11. if(vehicleid == x && !ispassenger)
  12. In loc de: PlayerInfo[CarOffer[playerid]][pPayCheck] += CarPrice[playerid] * 5; pui GivePlayerCash(CarOffer[playerid], CarPrice[playerid]);
  13. Silvian

    Erroare

    scrie la inceputul gm-ului #include <samc>
  14. Trebuie sa definesti sendername, adica: if(dialogid == 12345) { if(strlen(inputtext)) { new sendername[64]; GetPlayerName(playerid, sendername, sizeof(sendername)); ..................................................................................................
  15. Sa stii ca numaratoarea incepe de la 0. lockedcar[0] = addstaticveh bla bla lockedcar[1] = addstaticveh bla bla lockedcar[2] = addstaticveh bla bla lockedcar[3] = addstaticveh bla bla lockedcar[4] = addstaticveh bla bla De asta trebuie sa pui "Neaparat +1". Si inca ceva. In comanda ta, ai facut 4 masini pentru o persoana.
  16. Muta } return 1; in drept cu else { adica asa: [pawn] else { SendClientMessage(playerid, 0xE60000FF, "ERROR: NU esti in zona de spawn!"); } return 1; [/pawn]
  17. Daca folosesti asa: if(IsPlayerInRangeOfPoint(playerid, 15.0, 397.6663,2460.0630,16.5000)) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -475.4114,2205.9465,47.2935)) { e ca si cum ai folosi if(IsPlayerInRangeOfPoint(playerid, 15.0, 397.6663,2460.0630,16.5000) && IsPlayerInRangeOfPoint(playerid, 15.0, -475.4114,2205.9465,47.2935)) Pe cand tu trebuie sa folosesti ||, adica asa: if(strcmp(cmdtext, "/hm", true) == 0) { new loc1 = IsPlayerInRangeOfPoint(playerid, 15.0, 397.6663,2460.0630,16.5000); new loc2 = IsPlayerInRangeOfPoint(playerid, 15.0, -475.4114,2205.9465,47.2935); new loc3 = IsPlayerInRangeOfPoint(playerid, 15.0, 1116.8577,2494.9219,432.4359); new loc4 = IsPlayerInRangeOfPoint(playerid, 15.0, -2678.9490,1349.1318,16.9978); if(loc1 || loc2 || loc3 || loc4) { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SendClientMessage(playerid,0xFE1209FF, "Spawn Healt Adaugata!"); } else { SendClientMessage(playerid, 0xE60000FF, "ERROR: NU esti in zona de spawn!"); } return 1; }
  18. Ideea e sa si inchizi acoladele. if(strcmp(cmdtext, "/hm", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 15.0, 397.6663,2460.0630,16.5000)) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -475.4114,2205.9465,47.2935)) { if(IsPlayerInRangeOfPoint(playerid, 15.0, 1116.8577,2494.9219,432.4359)) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -2678.9490,1349.1318,16.9978)) { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SendClientMessage(playerid,0xFE1209FF, "Spawn Healt Adaugata!"); } } } } else { SendClientMessage(playerid, 0xE60000FF, "ERROR: NU esti in zona de spawn!"); } } Si apropo, nu iti va functiona comanda.
  19. la "public OnGameModeInit()" pui "DisableInteriorEnterExits();"
  20. Hmmm... altceva nu stiu ce ar putea fi. De obicei la "loose indentation" nu sunt bine aranjate functiile.
  21. Daca pui ShowplayerMarkers(0); nu o sa ti se vada in veci pe harta la /aod si nici la altceva
  22. Probabil nu sunt aranjate cum trebuie. Incearca sa le aranjezi asa: http://pastebin.com/DDqk1nwZ NU asa: http://pastebin.com/LKSrPa0i
×
×
  • 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.