Jump to content

AndrewDre

Membru
  • Posts

    22
  • Joined

  • Last visited

Posts posted by AndrewDre

  1. Daca le pui random la IsPlayerInRangeOfPoint exista o sansa sa nu ii mearga rob-ul jucatorului.

    Atunci cum ar fi mai bine să fac? In locul IsPlayerInRangeOfPoint era IsPlayerInAnyVehicle iar acest lucru vreau să-l scot. Vreau să pun simplu, fără să trebuiască să fiu intr-un vehiclu.

  2. Vezi ca ai un else care nu are ce cauta pe acolo

    [pawn]if(PlayerInfo[pRob] >= 10)

    {

    CP = 50;

    SetPlayerCheckpoint(i, x,y,z, 4.0);

    SendClientMessage(i, COLOR_YELLOW,"Go to checkpoint to finish breaking the bank.");

    SetPlayerWantedLevel(i, 6);

    WantedPoints = 12;

    SetPlayerCriminal(i,255, "Robbed the bank.");

    BizzInfo[1][bProducts] -= 10;

    PlayerInfo[pRob] -= 10;

    new str[184];

    Update(i,pRobx);

    Update(i,pWantedLevelx);

    format(str,sizeof(str),"UPDATE `bizz` SET `Products`='%d' WHERE `ID`='1'",BizzInfo[1][bProducts]);

    mysql_query(SQL,str);

    }[/pawn]

    mulțumesc, dar mai am o singură problemă : http://i.imgur.com/dhQBfkF.png , din câte stiu deasupra la „cp = 5 ” trebuie pus new i = cu ceva, dar nu stiu cu ce.

  3. Problemă întâlnită (descriere):Vreau să modific sistemul de rob.
    Ero(area / rile) / warning-(ul / urile):destule
    Liniile de cod / sursa / script-ul:.
    Imagini / Video (optional): original :  http://pastebin.com/kV9N46Uj

                                              păstrate doar cele ce-mi trebuie:  http://pastebin.com/3qgpq4WL

                                              erori : http://iceimg.com/MqTP
    Aţi încercat să rezolvaţi singur?:Da.

     

    As vrea să-l transform intr-un sistem simplu, fără masină si fără importanta cu cine sunt si cati suntem in masina. 

  4. [pawn]// DIALOG ID
    #define DIALOG_LOGIN1 1
    #define DIALOG_LOGIN2 2
    #define DIALOG_LOGIN3 3
    #define DIALOG_PLATE 4
    #define DIALOG_LOCATIONS 5
    #define DIALOG_FARMERA 6
    #define Dialog_24 7
    #define Dialog_radio 8
    #define DIALOG_PREMIUM 9
    #define Dialog_Gym 10
    #define DIALOG_PHONESTAT 11
    #define DIALOG_MUS 12
    #define DIALOG_HQS 17
    #define DIALOG_MEMBERS 32
    #define DIALOG_CARDAMAGE 43
    #define DIALOG_WANTEDON 54
    #define DIALOG_TRANSFER 59
    #define DIALOG_MATSINSO 65
    #define DIALOG_JOBS1 70
    #define DIALOG_JOBS2 71
    #define DIALOG_DONATE 73
    #define DIALOG_CARBUY 72
    #define DIALOG_CARBUY2 74
    #define DIALOG_CARBUY3 75
    #define DIALOG_CARBUY4 76
    #define DIALOG_CARBUY5 77
    #define DIALOG_CARBUY6 78
    #define DIALOG_CARBUY7 79
    #define DIALOG_LAPTOP 80
    #define DIALOG_PROF 81
    #define DIALOG_PENDEVENT 86
    #define DIALOG_LAWYERS 96
    #define DIALOG_MECHANICS 98
    #define DIALOG_INSTRUCTORS 99
    #define DIALOG_NEWPASS 132
    #define DIALOG_BUS 143
    #define DIALOG_BUS2 164
    #define DIALOG_LINE1 174
    #define DIALOG_LINE2 185
    #define DIALOG_TRANSPORT 187
    #define DIALOG_CLOTHES 198
    #define DIALOG_WEAPONSPAINTBALL 349
    #define DIALOG_REGISTER 454
    #define DIALOG_REGISTER2 456
    #define DIALOG_REGISTER3 474
    #define DIALOG_REGISTER4 477
    #define DIALOG_REGISTER5 479
    #define DIALOG_REGISTER6 480
    #define DIALOG_REFERRAL 481
    #define DIALOG_REFERRAL2 482
    #define DIALOG_CARSELL 483
    #define DIALOG_YT 484
    #define DIALOG_MATERIALS 485
    #define DIALOG_DTRANSFER 486
    #define DIALOG_WALKSTYLE 653
    #define DIALOG_NEON 487[/pawn]

  5. unde este for ...

     

    mai dai un tab sau doua pana este alinitcu paranteza de sub el si dai paste la asta:

     

    for (new i; i sizeof<sizeof(Filter); i++)

     

    [pawn]CMD:wisper(playerid, params[])

    {

    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");

    if(IsPlayerConnected(playerid))

    {

    new string[128],id,mess[250],giveplayer[25],sendername[25];

    if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You must be level 2 to use /w(isper).");

    if(PlayerInfo[playerid][pMuted] == 1)

    {

    format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    return 1;

    }

    if(sscanf(params, "us[250]",id,mess)) return SCM(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /w ");

    if (IsPlayerConnected(id))

    {

    if(id != INVALID_PLAYER_ID)

    {

    if(GetDistanceBetweenPlayers(playerid,id) > 5) return SCM(playerid,COLOR_WHITE,"{FFFFCC}This player is not near you.");

    if(Spectate[id] != 255) return SCM(playerid,COLOR_WHITE,"{FFFFCC}This player is not near you.");

    if(HidePM[id] > 0) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}This player doesn't allow whispers.");

    if(id == playerid) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You can not send a message to yourself.");

    GetPlayerName(playerid, sendername, sizeof(sendername));

    GetPlayerName(id, giveplayer, sizeof(giveplayer));

    format(string, sizeof(string), "%s whispers: %s", sendername, mess);

    SendClientMessage(id, COLOR_YELLOW, string);

    format(string, sizeof(string), "Whisper to %s: %s", giveplayer, mess);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    if(stringContainsIP(mess))

    {

    format(string, sizeof(string), "{f03337}Warning: %s(%d) typed %s.", sendername,playerid,mess);

    ABroadCast(COLOR_WHITE,string,1);

    }

    for(new d; d {

    if(strfind(mess,Filter[d],true) != -1 )

    {

    format(string, sizeof(string), "{f03337}Warning: %s(%d) typed %s.", sendername,playerid,mess);

    ABroadCast(COLOR_WHITE,string,1);

    }

    }

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");

    }

    }

    return 1;

    }[/pawn](filter);>

     

     

    Aici imi dă eroarea. http://iceimg.com/Pu4H_5Uh/eroare

  6. 1.Te duci in sa-mp , mergi la locul dorit si dai "/save" Te duci in GM si folosesti Create3DTextLabel si http://weedarr.wikidot.com/pickups cu functia CreatePickup (uite-te la parametri pe wiki), daca vrei sa stergi te duci fumos in GM , fix la pikup si dai /save si cauti prin gm cu CreatePickup sau cu Create3DTextLabel.

    2.Uh HQ se muta mai greu , te duci prin GM , cauti la factiunea X comanda /enter si /exit , pickupul sau 3DTextLabel-ul si le inlocuiesti cu coordonatele cu cele dorite.

    4. mergi cu masina , dai /save si mai departe: http://forum.egaming.ro/topic/26231-tutorialsamp-masini-pentru-factiune/

    3. La fel ca la punctul 1, si te inspiri si din punctul 2.

    5. Nu am inteles intrebarea deci ce vrei sa creezi un "elevator", ce e ala?

     

    P.S daca esti incepator , fa copie dupa GM pe care l-ai luat de pe net, si pe care lai modificat putintel , dupa bunul plac si pune undeva la adapost , deoarece vei mai intalni erori , si vei pierde mica munca depusa.

     

    Daca te-am ajutat dai pe sageata VERDE pt +1

    La unele m-ai ajutat, elevator=lift. 

  7. Problemă întâlnită (descriere):

    1.Cum creez/șterg „i-ul„ asta HcirZnD.png  și cum ii pun comandă si text?

    2.Cum mut un hq, cum ii setez intrările/iesirile,interiorul?

    3.Cum pun comenzi cu „i-ul„de mai sus intr-un interior ? (ex: Tastează on-duty..)

    4.Cum pun masinile factiunii in ce loc vreau eu?

    5.Cum as putea creea un elevator?

    Ero(area / rile) / warning-(ul / urile):-
    Liniile de cod / sursa / script-ul:-
    Imagini / Video (optional):-
    Aţi încercat să rezolvaţi singur?:Nu stiu cum.

     

    P.S.: Știu că cer prea mult, dar dacă aș fi as, aș face singur.   Programe folosite/pawno/xampp/navicat.

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