Sunday - 09. 08. 2026 •  Ucitavanje...
Link #1 Link #2 Link #3 Link #4 Link #5

!!

Registruj se i otključaj pun sadržaj

Kao gost imaš ograničen pristup forumu.
Registracijom dobijaš pristup svim temama, možeš pisati poruke, učestvovati u diskusijama i biti dio naše zajednice.

Author Topic: error 035: argument type mismatch (argument 4)  (Read 4240 times)

Offline

Raw_C, Newbie

    Postova: 2
  • RESPECT: 0
    • View Profile
error 035: argument type mismatch (argument 4)
on: December 08, 2024, 11:08:56 AM
Vas Problem : error 035: argument type mismatch (argument 4)
Linija Koda :

    new playerName[50]; // Za čuvanje imena igrača
    format(playerName, sizeof(playerName), "%s", ImeIgraca(playerid)); // Formatiranje imena


    new tmpobjid, object_world, object_int;
    tmpobjid = CreateDynamicObject(7914, 1422.062744, -973.979187, 56.023708, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, "DOBRODOSLI\n{7E60BF} %s", playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)
    tmpobjid = CreateDynamicObject(7914, 1422.096801, -973.967773, 55.943721, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, "{000000}DOBRODOSLI\n %s", playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)

 

Dodatan Komentar : Pokazuje mi error na linijama za ime ,vjerovatno je problem u formatiranju ali ja ne znam popraviti
Slika / Video :
« Last Edit: December 17, 2024, 03:37:45 PM by midori1 »


Offline

Ronald, Newbie

    Postova: 13
  • RESPECT: 0
    • View Profile
Re: error 035: argument type mismatch (argument 4)
Reply #1 on: December 08, 2024, 12:19:47 PM
You are not allowed to view links. Register or Login
Vas Problem : error 035: argument type mismatch (argument 4)
Linija Koda :

    new playerName[50]; // Za čuvanje imena igrača
    format(playerName, sizeof(playerName), "%s", ImeIgraca(playerid)); // Formatiranje imena


    new tmpobjid, object_world, object_int;
    tmpobjid = CreateDynamicObject(7914, 1422.062744, -973.979187, 56.023708, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, "DOBRODOSLI\n{7E60BF} %s", playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)
    tmpobjid = CreateDynamicObject(7914, 1422.096801, -973.967773, 55.943721, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, "{000000}DOBRODOSLI\n %s", playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)

 

Dodatan Komentar : Pokazuje mi error na linijama za ime ,vjerovatno je problem u formatiranju ali ja ne znam popraviti
Slika / Video :
Nemozes tako stavljat na teksture moras prvo formatirat i onda umjesto stringa nakacis formatisan tekst a u format dopises sve ajde probaj ovako stavit

Code: You are not allowed to view links. Register or Login
    new playerName[50]; // Za čuvanje imena igrača
    format(playerName, sizeof(playerName), "{000000}DOBRODOSLI\n %s", ImeIgraca(playerid)); // Formatiranje imena


    new tmpobjid, object_world, object_int;
    tmpobjid = CreateDynamicObject(7914, 1422.062744, -973.979187, 56.023708, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)
    tmpobjid = CreateDynamicObject(7914, 1422.096801, -973.967773, 55.943721, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0, playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)
nabrzinu sam odradio nisam provjeravo ako neradi probaj obrisat ovo \n pa probaj opet ok


Offline

V01D, Admin

    Street Hustler
      Postova: 39
    • RESPECT: 0
      • View Profile
Re: error 035: argument type mismatch (argument 4)
Reply #2 on: December 08, 2024, 05:46:09 PM
Code: You are not allowed to view links. Register or Login
   new playerName[64]; // Za čuvanje imena igrača
   format(playerName, sizeof(playerName), "DOBRODOSLI\n{7E60BF} %s", ImeIgraca(playerid)); // Formatiranje imena


   new tmpobjid, object_world, object_int;
   tmpobjid = CreateDynamicObject(7914, 1422.062744, -973.979187, 56.023708, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
   SetDynamicObjectMaterialText(tmpobjid, 0, playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)

   format(playerName, sizeof(playerName), "{000000}DOBRODOSLI\n %s", ImeIgraca(playerid)); // Formatiranje imena
   tmpobjid = CreateDynamicObject(7914, 1422.096801, -973.967773, 55.943721, 0.000000, 0.000000, -15.200000, object_world, object_int, -1, 300.00, 300.00);
   SetDynamicObjectMaterialText(tmpobjid, 0, playerName, 130, "Arial", 30, 1, 0xFFFFFFFF, 0x00000000, 2);  //error error 035: argument type mismatch (argument 4)


Offline

Grella, Street Hustler

    Postova: 28
  • RESPECT: 1
    • View Profile
Re: error 035: argument type mismatch (argument 4)
Reply #3 on: December 10, 2024, 09:16:13 AM
da malo učite o argumentima, ne bi ovo nikad postavljali


Offline

zmajko.pwn, Newbie

    Postova: 3
  • RESPECT: 1
    • View Profile
Re: error 035: argument type mismatch (argument 4)
Reply #4 on: January 14, 2025, 09:20:11 PM
ovo si nesto zbagovao


 


Vrati se na pocetak
SMF 2.0.19 | SMF © 2021, Simple Machines
Page created in 0.039 seconds with 18 queries.
ZBS © 2011 - 2024, Zapadni Balkan SA:MP
Weiss X 10.2 © 2014, Jade Works Studio
Footer background belongs to GTA Forums
SimplePortal 2.3.7 © 2008-2026, SimplePortal