Zapadni Balkan SA-MP

PAWN | SKRIPTANJE => Pomoc u vezi skrptanja => Topic started by: Raw_C on December 08, 2024, 11:08:56 AM

Title: error 035: argument type mismatch (argument 4)
Post by: Raw_C 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 :
Title: Re: error 035: argument type mismatch (argument 4)
Post by: Ronald 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
Title: Re: error 035: argument type mismatch (argument 4)
Post by: V01D 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)
Title: Re: error 035: argument type mismatch (argument 4)
Post by: Grella on December 10, 2024, 09:16:13 AM
da malo učite o argumentima, ne bi ovo nikad postavljali
Title: Re: error 035: argument type mismatch (argument 4)
Post by: zmajko.pwn on January 14, 2025, 09:20:11 PM
ovo si nesto zbagovao
SimplePortal 2.3.7 © 2008-2026, SimplePortal