thanks everyone ... ill test it later today
edit : tested ! XYZ and header display works fine ...
2nd edit : i used the displayed coordinates to create a vehicle placement , works perfecly !!
its a great work :bigpimpin
Feel sticky all of a sudden :lol:. Great work everyone BTW.:applaud:
alright , im stuck and its very stupÓd ...
compile(d)bat in Scocomplier cant find path to Myscript.c , i used path example given in 1st post for " files(d)txt " and tryed several other path and i always get " path cant be found " message when i use it ...
- im on win 7
- Scocompliler is on root of C:
- path in files(d)txt is " C:\ScoCompiler\ScoCompiler\Sources\Myscript(d)c "
- used notepad++ to create Myscript(d)c and properly saved it to " C:\ScoCompiler\ScoCompiler\Sources "
what the hell i do wrong ? ... seems i miss " GTAIVModdingTools\setup(d)msi " is it the reason why it fail ? ... it wasnt in filepack download , do i need to get it elsewhere ?
note: (d) are dots , forums think they are links .
make sure your compler is in C:\ScoCompiler\ScoCompiler\Compiler\
make sure compile.bat is in C:\ScoCompiler\ScoCompiler\
check if compile.bat"s code is the same as below (you can check by right click and edit)
make sure files.txt is in C:\ScoCompiler\ScoCompiler\Code:
FOR /F %%G IN (Files.txt) DO Compiler\scocl.exe GTAIV "%%G" "C:\ScoCompiler\ScoCompiler\Output\"
@ECHO Compiling Completed.
@ECHO Press Enter To Recompile.
for your sco you should have C:\ScoCompiler\ScoCompiler\Sources\Myscript.c
it works ! code within compile(d)bat was wrong on 4th line ...here how it was :
note : (d) are dotsQuote:
FOR /F %%G IN (Files(d)txt) DO Sources\Compiler\scocl(d)exe GTAIV "%%G" "C:\ScoCompiler\ScoCompiler\Output\"
so i removed " Sources\ " and saved , then i was able to compile Myscript(d)c ... moving on to next step .
my bad .. Ill fix it later
btw.. I didn't edit your post.. i keep replying inside peoples posts:lol:
added offline trainer C++ source code with credits inside file
well I think there is a size limit on the script.img @arount 14.44mb cus at 14.45mb I get a loading loop... and when I used the same new code minus old code.. it works again..
heres what I have been working on.. ped switching for main char (some models cause freezing like MODEL_SUPERLOD) ..
NOTE: not sure if Wait(100) is needed.. and it seems that I have to press all 3 buttons to activate.. if you take out "if (IS_BUTTON_PRESSED(0,X)) " then its just 2 buttons.. what I was trying to do is let the user select what option and use "X" as the activator..
Im still learing C++ (I am no way a coder yet)
here's my code for ped switching.. needs to be in GeneralInput.c
boolean listnumber = 0;
if((IS_BUTTON_PRESSED(0,DPAD_LEFT)) && (IS_BUTTON_PRESSED(0,CIRCLE)) )
if (listnumber == 0)
listnumber = 1;
else if(listnumber == 1)
listnumber = 2;
else if(listnumber == 2)
listnumber = 3;
else if(listnumber == 3)
listnumber = 0;