Jump to content

impulse81

Membru
  • Posts

    128
  • Joined

  • Last visited

    Never

Posts posted by impulse81

  1. [pawn] if(PRESSED( KEY_CROUCH))

    {

            if (PlayerToPoint(4.0, playerid,-1904.7109,274.6968,41.0469))

    {

        iif (GetPlayerState(playerid) == 2 && ispassenger) // asta e linia

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    SetVehiclePos(tmpcar, 2137.4526,-2070.6516,2277.2805);

    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

    SetPlayerInterior(playerid,1);

    LinkVehicleToInterior(gLastCar[playerid],1);

    SetVehicleZAngle(gLastCar[playerid],1.4095);

    PlayerInfo[playerid][pSpray] = 1;

            ShoObjectsLoad(playerid);

    }

    }

        }[/pawn]

    C:\Users\Gaby\Desktop\Eq.pwn(5346 : error 017: undefined symbol "ispassenger"

  2. C:\Users\Gaby\Desktop\Eq.pwn(53146) : error 001: expected token: "-string end-", but found "-identifier-"

    C:\Users\Gaby\Desktop\Eq.pwn(53146) : error 001: expected token: "-string end-", but found "-identifier-"

    C:\Users\Gaby\Desktop\Eq.pwn(53146) : warning 215: expression has no effect

    C:\Users\Gaby\Desktop\Eq.pwn(53146) : error 001: expected token: ";", but found "-integer value-"

    C:\Users\Gaby\Desktop\Eq.pwn(53146) : fatal error 107: too many error messages on one line

    asta e linia

    [pawn]ShowPlayerDialog(playerid,DIALOG_REPAIR1, DIALOG_STYLE_LIST, "Reparare", ""COLOR_YELLOW"1. {FFFFFF}Repara motorul\t\t\t"COLOR_GREEN"1230$ \n"COLOR_YELLOW"2. {FFFFFF}Repara caroseria + motorul\t\t"COLOR_GREEN"1670$", "Ok", "");[/pawn]

  3. salut . cand dau /smokecigars nu imi da tigara in mana si cand apas click sa o duca la gura..

    asta e comanda:

    [pawn]if(!strcmp(cmdtext, "/smokecigars", true))

    {

        if(IsPlayerConnected(playerid))

        {

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

            if(gPlayerLogged[playerid] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");

                return 1;

            }

            if(IsSmoking[playerid] == 0)

            {

                if(PlayerInfo[playerid][pLighter] == 0)

                {

                    SendClientMessage(playerid, COLOR_GREY, "  Nu ai Bricheta! Intoarcete la un magazin si cumapara-ti! ! ");

                    return 1;

                }

                if(PlayerInfo[playerid][pCigarettes] == 0)

                {

                    SendClientMessage(playerid, COLOR_GREY, "  Nu ai tigari! ");

                    return 1;

                }

                new randsmoke = random(2)+1;

    if(randsmoke == 1)

    {

        PlayerInfo[playerid][pLighter] -= 1;

        PlayerInfo[playerid][pCigarettes] -= 1;

    PlayerInfo[playerid][pDependent] += 1;

        if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), " %s scoate bricheta si isi aprinde tigara!.", sendername); }

    else { format(string, sizeof(string), "* %s takes out her lighter and cigarette and lights it up.", sendername); }

        ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);

        IsSmoking[playerid] = 60;

                        SendClientMessage(playerid, COLOR_WHITE, "Poti sa o arunci Apasand 'F' or 'Enter' !");

            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);

    }

                                  else

    {

        PlayerInfo[playerid][pLighter] -= 1;

        if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }

    else { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }

          ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);

        return 1;

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Deja fumezi! ");

        return 1;

    }

    }

    return 1;

    }[/pawn]

  4. [pawn]    if(dialogid == RADIO)

              {

                if(response)

                {

                        if(listitem==0)

        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=224605");

                        }

                        if(listitem==1)

                        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://80.86.106.136/listen.pls");

                        }

                        if(listitem==2)

                        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3");

                        }

                        if(listitem==3)

                        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://www.radio21.ro/site/Radio21Live.m3u");

                        }

                        if(listitem==4)

                        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://a.fmradiomanele.ro:8054");

                        }

                        if(listitem==5)

                        {

                            StopAudioStreamForPlayer(playerid);

                                            PlayAudioStreamForPlayer(playerid, "http://www.radioparty.ro/manele.m3u");

                        }

                        if(listitem==6)

                        {

                          StopAudioStreamForPlayer(playerid);

                        }

                    }

              }[/pawn]]

    asa e dialogul

  5. AM o problema la un dialog , cand dau cancel imi da server closed connection

    [pawn]ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Choose your radio station", "Radio Zu\nKiss FM\nPro FM\nRadio 21\nRadio Manele\nRadio Manele2\nStop The Music", "Listen", "Cancel");[/pawn]

  6. Salut!

    Cum fac sa nu mai ceara licenta DMV la Biciclete?

    Si mai am o problema :

    Cand dau /stats imi apar masinile pers pe care le am si la CAR ID nu imi scrie id-ul corect.. ce sa fac?

    [pawn]if (PlayerInfo[targetid][pPcarkey] != 999)

    {

        format(coordsstring, sizeof(coordsstring), "1| VehID:[%d] Cost:[%d] Culoare1:[%d] Culoare2:[%d] Incuiat:[%d]", pPcarkey ,CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

    }

    if (PlayerInfo[targetid][pPcarkey2] != 999)

    {

        format(coordsstring, sizeof(coordsstring), "2| VehID:[%d] Cost:[%d] Culoare1:[%d] Culoare2:[%d] Incuiat:[%d]", pPcarkey2 ,CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock]);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

    }

    if (PlayerInfo[targetid][pPcarkey3] != 999)

    {

        format(coordsstring, sizeof(coordsstring), "3| VehID:[%d] Cost:[%d] Culoare1:[%d] Culoare2:[%d] Incuiat:[%d]", pPcarkey3 ,CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock]);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

    }[/pawn]

  7. [pawn]for(new h = ID; h < sizeof(CarInfo); h++)

    {

    CreateVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);

    }[/pawn]

    nu am asa ceva

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