Jump to content
  • 0
Sign in to follow this  
Radutz

Problema factiune

Question

la factiunea uber cum fac si eu sa am pe masini inconita daia inloc de taxi sa fie uber? Ca pe sv-ul lui Raduq

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0
  • 0
20 hours ago, WiDuAlK said:

Nu stiu ce anume doresti, cum vrei mai exact, dar daca e e aia de taxi pe care scrie "UBER" deasupra masinii, atasezi obiectul de masina cu AttachObjectToVehicle si pui functia SetObjectMaterialText

Mai am o eroare...

we code:

new objectiduber = CreateDynamicObject(19309, 0, 0, 10, 0.0, 0.0, 90.0);
    SetObjectMaterialText(objectiduber, "UBER", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

si error:

C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(135) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(6451) : warning 217: loose indentation
C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(6492) : warning 217: loose indentation
C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(6528) : warning 217: loose indentation
C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(135) : warning 203: symbol is never used: "objectiduber"
Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Si daca schimb in objectid si nu mai pun objectiduber da otona de warnings la include.

App liniile alea 6451,6492,6528 nu le baga inseama ca e de la alt cv..

Edited by Radutz
edit

Share this post


Link to post
Share on other sites
  • 0
  • 0
10 hours ago, WiDuAlK said:

Codul merge, ai uitat un " ; "(punct virgula) inainte de a pune objectduber

Am deja pus ; we code:

new
    activerainbow[MAX_PLAYERS], Culori[7][MAX_PLAYERS],
    CARrainbow[MAX_PLAYERS], masinaRainbow[MAX_PLAYERS], K[MAX_PLAYERS];

new objectiduber = CreateDynamicObject(19309, 0, 0, 10, 0.0, 0.0, 90.0);
    SetObjectMaterialText(objectiduber, "UBER", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

Share this post


Link to post
Share on other sites
  • 0

codul lui objectiduber e bun, l am testat la mine, altundeva e problema, poate se mai incurca cu ce mai ai tu, schimba i zona unde l pui, sau rescrie codul din nou pe bucati, adica CreateDynamicObject(19309, 0, 0, 10, 0.0, 0.0, 90.0);  apoi SetObjectMaterialText(objectiduber, "UBER", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); , apoi initializezi obiectul cu objectiduber = CreateDynamicObject(....) ca sa vezi in ce stadiu iti da eroarea, sa stii unde te duci.

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, WiDuAlK said:

codul lui objectiduber e bun, l am testat la mine, altundeva e problema, poate se mai incurca cu ce mai ai tu, schimba i zona unde l pui, sau rescrie codul din nou pe bucati, adica CreateDynamicObject(19309, 0, 0, 10, 0.0, 0.0, 90.0);  apoi SetObjectMaterialText(objectiduber, "UBER", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); , apoi initializezi obiectul cu objectiduber = CreateDynamicObject(....) ca sa vezi in ce stadiu iti da eroarea, sa stii unde te duci.

Sa o pun pe la sfarsit in gamemode?

Share this post


Link to post
Share on other sites
  • 0
  • 0
10 hours ago, WiDuAlK said:

Pune o la ongamemodeinit

Ok multumesc mai am un warning code:

    SetObjectMaterialText(ubercar, "UBER", 0, OBJECT_MATERIAL_SIZE_256x128,


warningu care nuj daca ma afecteaza cu cv dar na:C:\Users\Radutz\Desktop\gm pe localhost\gamemodes\gmm.pwn(1253) : warning 217: loose indentation 

Share this post


Link to post
Share on other sites
  • 0
  • 0
  • 0
10 hours ago, WiDuAlK said:

Ar fii de preferat sa nu ai warning-uri, sunt niste avertizari ca acea bucata de cod, s-ar putea sa nu functioneze cum vrei tu, desi e transformata in binar.

Ok men, multumesc foarte mult esti un om de trb nu ca alti iti cer bani.. =)))

#respect

#SCRIPTER PRO

App s-a atasat obiectul dar tot taxi scrie =]]]

we la ce ma referam

https://imgur.com/a/L7BASaa

inloc de taxi sa scrie uber.. =]

Edited by Radutz
edit

Share this post


Link to post
Share on other sites
  • 0
Acum 2 ore, Radutz a spus:

Ok men, multumesc foarte mult esti un om de trb nu ca alti iti cer bani.. =)))

#respect

#SCRIPTER PRO

App s-a atasat obiectul dar tot taxi scrie =]]]

we la ce ma referam

https://imgur.com/a/L7BASaa

inloc de taxi sa scrie uber.. =]

Am specificat aici:

Acum 2 ore, WiDuAlK a spus:

Ar fii de preferat sa nu ai warning-uri, sunt niste avertizari ca acea bucata de cod, s-ar putea sa nu functioneze cum vrei tu, desi e transformata in binar.

Scapa de warning si vezi de ti merge, incearca sa refaci chestia asta din nou, vesi si in tutoriale, de obicei, warning-ul: warning 217: loose indentation  apare cand nu ai pus indent-ul corect(acele 4 spatii[TAB])

Edited by WiDuAlK

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.