Jump to content

RaZzoR

Membru
  • Posts

    32
  • Joined

  • Last visited

    Never

Posts posted by RaZzoR

  1. Salut, am incercat sa bag in GM un script de la sistemul "vehsistem" ca sa imi arata de afara numele masinii si pretul.

    o imagine sa va conduca la mai precis ce vreau sa fac 6Dl6Jz9.png

    iata codul care am incercat sa il pun ca sa imi arate acel textdraw

    Delete3DTextLabel(TextUpCar[carid]);
    	format(TextCar,sizeof(TextCar),"This car is for sale, price: %d",VehicleSystem[GetCreatorID(carid)][preis]);
     	TextUpCar[carid] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);
    	Attach3DTextLabelToVehicle(TextUpCar[carid],carid,0.0,0.0,0.0);
    	}

  2. //=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-snowon-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    if(strcmp(cmd, "/snowon", true) == 0) //by JustRed
    {
       if(PlayerInfo[playerid][pServerAdmin] >= 5)
    {
       if(SnowOn == 0)
       {
       for(new i=0; i<MAX_PLAYERS; i++)
    {
        SetPlayerAttachedObject(i, 3, 18863, 1, 14.877702, -3.078147, 19.289804, 213.993621, 36.619785, 334.528167 ); // SnowArc1 - 8167
        }
        SetWeather(9);
        SnowOn = 1;
       SendClientMessageToAll(COLOR_NEWS, "[SAN Meteo]: Breaking News: The weather is now changing to Frosty Snow, be carefull on the roads !");
       format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s a folosit comanda /snowon {FF0000}!",sendername);
    ABroadCast(COLOR_YELLOW,string,1);
    }
       }
       else
       {
           SendClientMessage(playerid, COLOR_GRAD1, "Tu nu ai voie sa folosesti aceasta comanda.");
     	return 1;
    }
    return 1;
      }
    //=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-snowoff-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
      if(strcmp(cmd, "/snowoff", true) == 0) //by JustRed
    {
       if(PlayerInfo[playerid][pServerAdmin] >= 5) // Aici pui functia ta  >= (Mai mare sau egal decat admin 8)
    {
       if(SnowOn == 1)
       {
       for(new i=0; i<MAX_PLAYERS; i++)
    {
       	RemovePlayerAttachedObject(i, 3);
       }
       SetWeather(14);
       SnowOn = 0;
       SendClientMessageToAll(COLOR_NEWS, "Meteo Atention: The weather is changing, no other information about this !");
       format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s a folosit comanda /snowoff {FF0000}!",sendername);
    ABroadCast(COLOR_YELLOW,string,1);
       }
          }
       else
       {
           SendClientMessage(playerid, COLOR_GRAD1, "Tu nu ai voie sa folosesti aceasta comanda.");
     	return 1;
    }
    return 1;
      }

    Poftim

  3. buna, am o problema, am bagat pe server comenzile /snowon si /sonwoff

    dar mai intii de comenzi am bagat caciula de mos craciun

    problema este cind dau /snowon api dispare caciula de pe cap si mai dau odata nu apare.

    ce poate sa aiba?

  4. am rezolvat niste errori la acest GM dar mi-a aparut altele

    iata errorile

    Code: [select]

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(12780) : warning 219: local variable "mod" shadows a variable at a preceding level

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(17082) : warning 219: local variable "tmp" shadows a variable at a preceding level

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38606) : warning 225: unreachable code

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38609) : error 028: invalid subscript (not an array or too many subscripts): "format"

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38609) : warning 215: expression has no effect

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38609) : error 001: expected token: ";", but found "]"

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38609) : error 029: invalid expression, assumed zero

    C:\Documents and Settings\Administrator\??????? ????\update nlg\gamemodes\NLG.pwn(38609) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    linia 12780

    Code: [select]

    }

                    new mod  = 100;

    tmp = strtok(cmdtext, idx);

    linia 17082

    Code: [select]

    {

            new tmp[256];

    tmp = strtok(cmdtext,idx);

    linia 38606 pina la 38609

    Code: [select]

    #else

    if (string[0] == 0 || (string[0] == 1 && string[1] == 0))

    #endif

    {

    return format[0];

    }

    #pragma tabsize 4

    new

    ma poate ajuta cineva cu asa errori???

  5. Buna, am o intrebare care o am la un warning

    ce inseamna cind iti papare asa un warning??

    NLG.pwn(17027) : warning 219: local variable "tmp" shadows a variable at a preceding level

    am sters `tmp` si imi da mai multe errori shi warning

    ce trebuie sa ii fac casa despara??

  6. am bagat asa shi acum imi da aceasta erroare

    C:\Documents and Settings\Administrator\??????? ????\pawno\include\JunkBuster.inc(3037) : error 021: symbol already defined: "OnPlayerEnterRaceCheckpoint"

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7946) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7946) : warning 202: number of arguments does not match definition

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7947) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7947) : warning 202: number of arguments does not match definition

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7948) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7948) : warning 202: number of arguments does not match definition

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7949) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7949) : warning 202: number of arguments does not match definition

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7950) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7950) : warning 202: number of arguments does not match definition

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7951) : warning 213: tag mismatch

    C:\Documents and Settings\Administrator\??????? ????\update\update nlg\gamemodes\saveG.pwn(7951) : warning 202: number of arguments does not match definition

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    ce trebuie sa fac mai departe??

  7. buna, am nevoi de un system de masini personale, imi ofera cineva un system functionabil fara buguri sau alte chestii?? am cautat un fs de masini personale carownership si nu imi merge dar are si buguri la fel ca mysystem si vehsystem, imi puteti da alt ceva sau un sfat de a face unu??

    va rog

  8. buna, am o erroare la un fs si nu stiu cum sa o rezolv...iata erroarea

    C:\Documents and Settings\Administrator\??????? ????\parcincentru.pwn(1) : error 010: invalid function or declaration

    C:\Documents and Settings\Administrator\??????? ????\parcincentru.pwn(1) : error 010: invalid function or declaration

    C:\Documents and Settings\Administrator\??????? ????\parcincentru.pwn(1 -- 2) : error 021: symbol already defined: "RemoveBuildingForPlayer"

    C:\Documents and Settings\Administrator\??????? ????\parcincentru.pwn(1 -- 2) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    ma ajuta cineva cu aceasta erroare?

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