Jump to content
  • 0

Question

Posted

Am vrut sa pun si eu cateva cv 3 d pe svr meu cu functia asta : [pawn]//3D label car

public Velocimetro()

{

for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))

{

new vehicleid = GetPlayerVehicleID(p);

if(vehicleid)

{

new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;

GetVehicleVelocity(vehicleid, X, Y, Z);

PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

GetVehicleHealth(vehicleid,vhealth);

format(string,sizeof string ,"{ff0000}[RGS]2Pac.Shakur and [RGS]Anatas\n{3399ff}Vehicle: {ff99cc}%s\n{ff0000}Health: {ff99cc}%.2f\n{ffff00}Speed: {ff99cc}%ikm/h", NombreAutos[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));

DeletePlayer3DTextLabel(p, Velocimetro3Dtext);

Velocimetro3Dtext = CreatePlayer3DTextLabel(p, string, 0xFB0000FF, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);

} else if(p) { DeletePlayer3DTextLabel(p, Velocimetro3Dtext); }

} [/pawn]

Dar imi da erori

[pawn]C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(543) : warning 235: public function lacks forward declaration (symbol "Velocimetro")

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "X" shadows a variable at a preceding level

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Y" shadows a variable at a preceding level

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Z" shadows a variable at a preceding level

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 017: undefined symbol "NombreAutos"

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : warning 215: expression has no effect

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : fatal error 107: too many error messages on one line

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

4 Errors. [/pawn]

[move]ce ias putea face? [/move]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

17 answers to this question

Recommended Posts

Posted

care ii linia 554?

asta este

new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;
florin vezi mai sus poate mai ai o data
new string[128]

cauta... daca nu gasesti te ajut eu pe mess dar nu mi'ai zis o_0

<a href=http://devilone.ro>

devilone-banner.png</a>

Posted

Linia 554 si 555 sunt astea: [pawn] new rand = random(sizeof(gRandomPlayerSpawnsHDM));

SetPlayerPos(playerid, gRandomPlayerSpawnsHDM[rand][0], gRandomPlayerSpawnsHDM[rand][1], gRandomPlayerSpawnsHDM[rand][2]); // Warp the player[/pawn]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(543) : warning 235: public function lacks forward declaration (symbol "Velocimetro")

Trebue sai faci un Forward

Cam asa arata forward Velocimetro(playerid);

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "X" shadows a variable at a preceding level

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Y" shadows a variable at a preceding level

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Z" shadows a variable at a preceding level

Zice ca le mai ai odata puse incearca sa le stregi o sa le pui Xz Yz Zz daca le pui asa nu uita sa schimbi si la cele lante

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 017: undefined symbol "NombreAutos"

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : warning 215: expression has no effect

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : fatal error 107: too many error messages on one line

Zice ca nu ai definit NombreAutos

incearca asa #define NombreAutos

Posted

Am facut rost de scriptul complet acesta[pawn] [/pawn]

#include <a_samp>

#define speedcolor 0xFF0000FF

new VehicleName[212][] = {

"Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",

  "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",

  "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",

  "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",

  "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",

  "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",

  "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",

  "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",

  "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",

  "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",

  "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",

  "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",

  "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",

  "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",

  "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",

  "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",

  "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",

  "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",

  "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",

  "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",

  "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",

  "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",

  "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",

  "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",

  "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",

  "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",

  "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",

  "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",

  "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",

  "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",

  "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",

  "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",

  "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",

  "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",

  "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",

  "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",

  "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",

  "Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",

  "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",

  "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",

  "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",

  "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",

  "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",

  "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",

  "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",

  "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer" };

new

PlayerText3D:speedo3Dtext,

Speedoff,

bool:OneCreateTextDraw[MAX_PLAYERS];

public OnFilterScriptInit()

{

print("speedo loaded");

Speedoff = SetTimer("Speed", 800, 1);

return true;

}

public OnPlayerConnect(playerid)

{

OneCreateTextDraw[playerid] = true;

return true;

}

forward Speed();

public Speed()

{

new

wplayerid = 0,

GetPlayers = GetMaxPlayers();

while(wplayerid != GetPlayers)

{

if(IsPlayerConnected(wplayerid) && !IsPlayerNPC(wplayerid))

{

    new

string[128],

VehicleID = GetPlayerVehicleID(wplayerid);

//         printf("Connected wplayerid and No Npc ID: %d", wplayerid);

if(VehicleID)

{

        new

Float:X,

Float:Y,

Float:Z,

Float:PointToPoint,

Float:vhealth;

        GetVehicleVelocity(VehicleID, X, Y, Z);

        PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

GetVehicleHealth(VehicleID, vhealth);

format(string,sizeof string ,"{FF000D}Vehicle: %s\n{0707FA}Health: %.2f\n{07FA10}Speed: {F2FA07}%ikm/h", VehicleName[GetVehicleModel(VehicleID)-400], vhealth, floatround(PointToPoint, floatround_floor));

if(OneCreateTextDraw[wplayerid] == true)

{

//     printf("Create speedo3Dtext wplayerid: %d", wplayerid);

speedo3Dtext = CreatePlayer3DTextLabel(wplayerid, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, VehicleID);

OneCreateTextDraw[wplayerid] = false;

}

    UpdatePlayer3DTextLabelText(wplayerid, speedo3Dtext, speedcolor, string);

} else if(wplayerid) {

    if(OneCreateTextDraw[wplayerid] == false)

    {

//     format(string,sizeof string," ");

//     UpdatePlayer3DTextLabelText(p,speedo3Dtext, speedcolor, string);

//             printf("Delete speedo3Dtext wplayerid: %d", wplayerid);

DeletePlayer3DTextLabel(wplayerid, speedo3Dtext);

        OneCreateTextDraw[wplayerid] = true;

}

}

}

wplayerid++;

}

return true;

}

public OnFilterScriptExit()

{

KillTimer(Speedoff);

for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)

{

DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);

}

return true;

}

[glow=red,2,300]Acum problema e alt cand ies din masina ramane 3D pe masina [/glow]

Am pus 2 screenuri sa vedeti despre ce e vb

1. http://postimage.org/image/1bysoddtw/  (Aici e normal sa arate sunt in masina)

2. http://postimage.org/image/1bzj4yxqc/    (Aici nu e normal sa arate ca nu mai sunt in masina)

[shadow=red,left]Cum as putea rezolva?? [/shadow]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

Ti lam reparat eu...sper sa-ti mearga;)

[pawn]

#include <a_samp>

#define speedcolor 0xFF0000FF

new VehicleName[212][] = {

"Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",

  "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",

  "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",

  "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",

  "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",

  "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",

  "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",

  "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",

  "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",

  "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",

  "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",

  "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",

  "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",

  "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",

  "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",

  "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",

  "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",

  "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",

  "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",

  "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",

  "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",

  "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",

  "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",

  "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",

  "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",

  "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",

  "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",

  "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",

  "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",

  "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",

  "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",

  "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",

  "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",

  "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",

  "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",

  "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",

  "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",

  "Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",

  "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",

  "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",

  "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",

  "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",

  "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",

  "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",

  "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",

  "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer" };

new

  PlayerText3D:speedo3Dtext,

  Speedoff,

  bool:OneCreateTextDraw[MAX_PLAYERS];

public OnFilterScriptInit()

{

  print("speedo loaded");

  Speedoff = SetTimer("Speed", 800, 1);

  return true;

}

public OnPlayerConnect(playerid)

{

  OneCreateTextDraw[playerid] = true;

  return true;

}

public OnPlayerExitVehicle(playerid, vehicleid)

{

for (new i=0; i<MAX_PLAYERS; i++)

{

DeletePlayer3DTextLabel(playerid, speedo3Dtext);

}

return 1;

}

forward Speed();

public Speed()

{

    new

      wplayerid = 0,

      GetPlayers = GetMaxPlayers();

      while(wplayerid != GetPlayers)

      {

      if(IsPlayerConnected(wplayerid) && !IsPlayerNPC(wplayerid))

      {

            new

            string[128],

            VehicleID = GetPlayerVehicleID(wplayerid);

        if(VehicleID)

        {

              new

              Float:X,

              Float:Y,

              Float:Z,

              Float:PointToPoint,

              Float:vhealth;

              GetVehicleVelocity(VehicleID, X, Y, Z);

              PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

          GetVehicleHealth(VehicleID, vhealth);

              format(string,sizeof string ,"{FF000D}Vehicle: %s\n{0707FA}Health: %.2f\n{07FA10}Speed: {F2FA07}%ikm/h", VehicleName[GetVehicleModel(VehicleID)-400], vhealth, floatround(PointToPoint, floatround_floor));

          if(OneCreateTextDraw[wplayerid] == true)

              {

              speedo3Dtext = CreatePlayer3DTextLabel(wplayerid, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, VehicleID);

              OneCreateTextDraw[wplayerid] = false;

              }

              UpdatePlayer3DTextLabelText(wplayerid, speedo3Dtext, speedcolor, string);

          } else if(wplayerid) {

            if(OneCreateTextDraw[wplayerid] == false)

            {

              DeletePlayer3DTextLabel(wplayerid, speedo3Dtext);

              OneCreateTextDraw[wplayerid] = true;

            }

        }

      }

      wplayerid++;

      }

      return true;

}

public OnFilterScriptExit()

{

  KillTimer(Speedoff);

  for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)

  {

      DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);

  }

  return true;

}

[/pawn]

lam si identitat mai frumos sa nuti mai dea warnurile alea Loose Identitation:P

Fara reclama in semnatura!

Posted

Speedy imi da 2 erori ma pot ajuta? [pawn]C:\Documents and Settings\Florin\Desktop\DsD V2\gamemodes\Fs.pwn(5) : error 001: expected token: ";", but found "&"

C:\Documents and Settings\Florin\Desktop\DsD V2\gamemodes\Fs.pwn(132) : error 030: compound statement not closed at the end of file (started at line 126)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[/pawn]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

Speedy imi da 2 erori ma pot ajuta? [pawn]C:\Documents and Settings\Florin\Desktop\DsD V2\gamemodes\Fs.pwn(5) : error 001: expected token: ";", but found "&"

C:\Documents and Settings\Florin\Desktop\DsD V2\gamemodes\Fs.pwn(132) : error 030: compound statement not closed at the end of file (started at line 126)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[/pawn]

rezolvat:

#include <a_samp>

#define speedcolor 0xFF0000FF

new VehicleName[212][] = {
"Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",
   "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",
   "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",
   "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",
   "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",
   "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",
   "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",
   "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",
   "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",
   "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",
   "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",
   "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",
   "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",
   "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",
   "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",
   "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",
   "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",
   "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",
   "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",
   "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",
   "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",
   "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",
   "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",
   "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",
   "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",
   "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",
   "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",
   "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",
   "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",
   "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",
   "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",
   "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",
   "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",
   "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",
   "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",
   "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",
   "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",
   "Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",
   "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",
   "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",
   "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",
   "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",
   "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",
   "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",
   "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",
   "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer" };

new
   PlayerText3D:speedo3Dtext,
   Speedoff,
   bool:OneCreateTextDraw[MAX_PLAYERS];

public OnFilterScriptInit()
{
   print("speedo loaded");
   Speedoff = SetTimer("Speed", 800, 1);
   return true;
}

public OnPlayerConnect(playerid)
{
   OneCreateTextDraw[playerid] = true;
   return true;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
for (new i=0; i<MAX_PLAYERS; i++)
{
DeletePlayer3DTextLabel(playerid, speedo3Dtext);
}
return 1;
}

forward Speed();
public Speed()
{
   	  new
      wplayerid = 0,
      GetPlayers = GetMaxPlayers();
      while(wplayerid != GetPlayers)
      {
      if(IsPlayerConnected(wplayerid) && !IsPlayerNPC(wplayerid))
      {
            new
            string[128],
            VehicleID = GetPlayerVehicleID(wplayerid);
         	if(VehicleID)
         	{
               new
               Float:X,
               Float:Y,
               Float:Z,
               Float:PointToPoint,
               Float:vhealth;
               GetVehicleVelocity(VehicleID, X, Y, Z);
               PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;
         	   GetVehicleHealth(VehicleID, vhealth);
               format(string,sizeof string ,"{FF000D}Vehicle: %s\n{0707FA}Health: %.2f\n{07FA10}Speed: {F2FA07}%ikm/h", VehicleName[GetVehicleModel(VehicleID)-400], vhealth, floatround(PointToPoint, floatround_floor));
         	   if(OneCreateTextDraw[wplayerid] == true)
               {
               speedo3Dtext = CreatePlayer3DTextLabel(wplayerid, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, VehicleID);
               OneCreateTextDraw[wplayerid] = false;
               }
               UpdatePlayer3DTextLabelText(wplayerid, speedo3Dtext, speedcolor, string);
         	   } else if(wplayerid) {
          	   if(OneCreateTextDraw[wplayerid] == false)
           	   {
               DeletePlayer3DTextLabel(wplayerid, speedo3Dtext);
               OneCreateTextDraw[wplayerid] = true;
            }
         }
      }
      wplayerid++;
      }
      return true;
}

public OnFilterScriptExit()
{
   KillTimer(Speedoff);
   for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)
   {
      DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);
   }
   return true;
}

P.S scz nu am observat ceva...si de aia dadea errorile:P

Fara reclama in semnatura!

Posted

Acum a aparut alta problema te urci in masina merge.Te dai jos dispare,te urci iara in ea nu mai apare deloc :-??

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

[pawn]#include <a_samp>

#define speedcolor 0xFF0000FF

new VehicleName[212][] = {

"Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",

  "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",

  "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",

  "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",

  "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",

  "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",

  "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",

  "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",

  "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",

  "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",

  "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",

  "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",

  "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",

  "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",

  "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",

  "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",

  "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",

  "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",

  "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",

  "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",

  "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",

  "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",

  "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",

  "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",

  "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",

  "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",

  "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",

  "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",

  "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",

  "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",

  "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",

  "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",

  "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",

  "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",

  "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",

  "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",

  "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",

  "Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",

  "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",

  "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",

  "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",

  "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",

  "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",

  "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",

  "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",

  "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer" };

new

  PlayerText3D:speedo3Dtext,

  Speedoff,

  bool:OneCreateTextDraw[MAX_PLAYERS];

public OnFilterScriptInit()

{

  print("speedo loaded");

  Speedoff = SetTimer("Speed", 800, 1);

  return true;

}

public OnPlayerConnect(playerid)

{

  OneCreateTextDraw[playerid] = true;

  return true;

}

public OnPlayerExitVehicle(playerid, vehicleid)

{

for (new i=0; i<MAX_PLAYERS; i++)

{

DeletePlayer3DTextLabel(playerid, speedo3Dtext);

}

return 1;

}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

    OneCreateTextDraw[playerid] = true;

    return 1;

}

forward Speed();

public Speed()

{

    new

      wplayerid = 0,

      GetPlayers = GetMaxPlayers();

      while(wplayerid != GetPlayers)

      {

      if(IsPlayerConnected(wplayerid) && !IsPlayerNPC(wplayerid))

      {

            new

            string[128],

            VehicleID = GetPlayerVehicleID(wplayerid);

        if(VehicleID)

        {

              new

              Float:X,

              Float:Y,

              Float:Z,

              Float:PointToPoint,

              Float:vhealth;

              GetVehicleVelocity(VehicleID, X, Y, Z);

              PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

          GetVehicleHealth(VehicleID, vhealth);

              format(string,sizeof string ,"{FF000D}Vehicle: %s\n{0707FA}Health: %.2f\n{07FA10}Speed: {F2FA07}%ikm/h", VehicleName[GetVehicleModel(VehicleID)-400], vhealth, floatround(PointToPoint, floatround_floor));

          if(OneCreateTextDraw[wplayerid] == true)

              {

              speedo3Dtext = CreatePlayer3DTextLabel(wplayerid, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, VehicleID);

              OneCreateTextDraw[wplayerid] = false;

              }

              UpdatePlayer3DTextLabelText(wplayerid, speedo3Dtext, speedcolor, string);

          } else if(wplayerid) {

            if(OneCreateTextDraw[wplayerid] == false)

            {

              DeletePlayer3DTextLabel(wplayerid, speedo3Dtext);

              OneCreateTextDraw[wplayerid] = true;

            }

        }

      }

      wplayerid++;

      }

      return true;

}

public OnFilterScriptExit()

{

  KillTimer(Speedoff);

  for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)

  {

      DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);

  }

  return true;

}[/pawn]

Ia vezi acuma

Posted

Acum da o err: [pawn] C:\Documents and Settings\Florin\Desktop\DsD V2\filterscripts\AFK.pwn(5) : error 001: expected token: ";", but found "&"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

vezi akm

[pawn]#include <a_samp>

#define speedcolor 0xFF0000FF

new VehicleName[212][] = {

"Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",

  "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",

  "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",

  "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",

  "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",

  "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",

  "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",

  "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",

  "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",

  "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",

  "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",

  "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",

  "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",

  "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",

  "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",

  "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",

  "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",

  "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",

  "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",

  "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",

  "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",

  "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",

  "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",

  "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",

  "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",

  "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",

  "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",

  "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",

  "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",

  "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",

  "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",

  "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",

  "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",

  "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",

  "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",

  "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",

  "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",

  "Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",

  "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",

  "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",

  "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",

  "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",

  "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",

  "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",

  "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",

  "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer" };

new

  PlayerText3D:speedo3Dtext,

  Speedoff,

  bool:OneCreateTextDraw[MAX_PLAYERS];

public OnFilterScriptInit()

{

  print("speedo loaded");

  Speedoff = SetTimer("Speed", 800, 1);

  return true;

}

public OnPlayerConnect(playerid)

{

  OneCreateTextDraw[playerid] = true;

  return true;

}

public OnPlayerExitVehicle(playerid, vehicleid)

{

for (new i=0; i<MAX_PLAYERS; i++)

{

DeletePlayer3DTextLabel(playerid, speedo3Dtext);

}

return 1;

}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

    OneCreateTextDraw[playerid] = true;

    return 1;

}

forward Speed();

public Speed()

{

    new

      wplayerid = 0,

      GetPlayers = GetMaxPlayers();

      while(wplayerid != GetPlayers)

      {

      if(IsPlayerConnected(wplayerid) && !IsPlayerNPC(wplayerid))

      {

            new

            string[128],

            VehicleID = GetPlayerVehicleID(wplayerid);

        if(VehicleID)

        {

              new

              Float:X,

              Float:Y,

              Float:Z,

              Float:PointToPoint,

              Float:vhealth;

              GetVehicleVelocity(VehicleID, X, Y, Z);

              PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

          GetVehicleHealth(VehicleID, vhealth);

              format(string,sizeof string ,"{FF000D}Vehicle: %s\n{0707FA}Health: %.2f\n{07FA10}Speed: {F2FA07}%ikm/h", VehicleName[GetVehicleModel(VehicleID)-400], vhealth, floatround(PointToPoint, floatround_floor));

          if(OneCreateTextDraw[wplayerid] == true)

              {

              speedo3Dtext = CreatePlayer3DTextLabel(wplayerid, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, VehicleID);

              OneCreateTextDraw[wplayerid] = false;

              }

              UpdatePlayer3DTextLabelText(wplayerid, speedo3Dtext, speedcolor, string);

          } else if(wplayerid) {

            if(OneCreateTextDraw[wplayerid] == false)

            {

              DeletePlayer3DTextLabel(wplayerid, speedo3Dtext);

              OneCreateTextDraw[wplayerid] = true;

            }

        }

      }

      wplayerid++;

      }

      return true;

}

public OnFilterScriptExit()

{

  KillTimer(Speedoff);

  for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)

  {

      DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);

  }

  return true;

}[/pawn]

Posted

tot aceiasi eroare [pawn]C:\Documents and Settings\Florin\Desktop\DsD V2\filterscripts\AFK.pwn(5) : error 001: expected token: ";", but found "&"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Posted

Gata Close Topic datorita bunavointei lui: xxSPEEDYxx care m-a ajutat sa rezolv problema!Pe aceasta cale multumesc inca odata xxSPEEDYxx !

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

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.