Zapadni Balkan SA-MP
PAWN | SKRIPTANJE => Pomoc u vezi skrptanja => Topic started 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 :
-
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
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
-
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)
-
da malo učite o argumentima, ne bi ovo nikad postavljali
-
ovo si nesto zbagovao