MTA converter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MTA converter (
/showthread.php?tid=110843)
MTA converter -
SlashPT - 28.11.2009
hey all im doing a mta converter for vehicles and now i dont know how to the converter put the two colors of the car i have this
pawn Код:
l = strfind(read, "color");
l+=6;
a=0;
lines = 0;
for(new o=l; o<256; o++)
{
if(read[o] == '"')
{
a++;
if(a == 2) break;
}
else
{
if(!lines)
{
format(strr,sizeof(strr),"%c",read[o]);
lines = 1;
}
else format(strr,sizeof(strr),"%s%c",strr,read[o]);
}
}
c = strval(strr);
l = strfind(read, "color");
l+=6;
a=0;
lines = 0;
for(new o=l; o<256; o++)
{
if(read[o] == '"' && read[o] == ' ')
{
a++;
if(a == 2) break;
}
else
{
if(!lines)
{
format(strr,sizeof(strr),"%c",read[o]);
lines = 1;
}
else format(strr,sizeof(strr),"%s%c",strr,read[o]);
}
}
v = strval(strr);
the color in mta is this
so i want when i do the convert it gives to me the first and the second color but now only gives to me the first color its 0
Re: MTA converter -
SlashPT - 29.11.2009
bump
Re: MTA converter -
Luka P. - 29.11.2009
off-topic: how will you use that converter? (it's a script?)
Re: MTA converter -
SlashPT - 29.11.2009
yeah
Re: MTA converter -
SlashPT - 30.11.2009
plz help bcs i really need it