Jump to content

Question

Posted

Buna , as dori sa ma ajutati si pe mine am un srv de Stunt si as dori sa le pun la unele masini (DOAR la unele) daca as putea sa selectez prin ID un anumit tip de NUmar de inmatriculare

De ex la masina 351 sa ii pun Nr de inmatriculare : "Test"

Iar dupa restart la server sa ramana.

Am vazut ceva pe wiki samp dar nu am reusit.

7 answers to this question

Recommended Posts

Guest PlayON
Posted

In: OnGameModeInit( ) dupa masinile create!

for ( new v = 0; v < MAX_VEHICLES; ++v )

{

    if ( v == 351 || v == 482)

    {

            //codul tau pentru masina 351, si 482

    }

}

Posted

In: OnGameModeInit( ) dupa masinile create!

for ( new v = 0; v < MAX_VEHICLES; ++v )

{

    if ( v == 351 || v == 482)

    {

            //codul tau pentru masina 351, si 482

    }

}

deci intre { si }      if ( v == 351 || v == 482)

    {

      CODULMEU    //codul tau pentru masina 351, si 482

    }

asa?

Posted
D:\Serverul de samp\SV PT TESTEEEE\server samp\gamemodes\meinegm.pwn(9094) : error 017: undefined symbol "CodeFormycar"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

CodeFormycar era un numar de inmatriculare la test

Posted

Incearca asa :

for ( new v = 0; v < MAX_VEHICLES; ++v )

  {

  if ( v == 351 || v == 482)

  {

  SetVehicleNumberPlate(vehicleid, numberplate[],NUMAR DE INMATRICULARE);  //codul tau pentru masina 351, si 482

  }

  }

qdbjz10.png

Posted
D:\Serverul de samp\SV PT TESTEEEE\server samp\gamemodes\meinegm.pwn(9094) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Guest farse
Posted

v in loc de vehicleid

for ( new v = 0; v < MAX_VEHICLES; ++v )

  {

  if ( v == 351 || v == 482)

  {

  SetVehicleNumberPlate(v, "NUMAR DE INMATRICULARE");  //codul tau pentru masina 351, si 482

  }

  }

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.