Quantcast

Jump to content

» «
Photo

Can't even request a model with sco?

1 reply to this topic
Zolika1351
  • Zolika1351

    Ladies, hide your titties!

  • Members
  • Joined: 16 Jun 2014
  • Hungary

#1

Posted 28 August 2017 - 01:39 PM Edited by Zolika1351, 28 August 2017 - 02:06 PM.

 I can't believe that I can f*ck up such simple pieces of code, but here is what I have:

#include <natives.h>
#include <common.h>
#include <strings.h>
#include <types.h>
#include <consts.h>

void main(void)
{
	THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
	REQUEST_MODEL(0x89395FC9);
	TERMINATE_THIS_SCRIPT();
}

All I need this for is to let the trainer be able to spawn this model. But when I load it using Skorpro's SCO loader it just crashes the game. What am I doing wrong here?

EDIT: Of course the moment I post something I find the solution. It was either me using hexadecimal hashes instead of decimal ones, or me using a broken version of Skorpro's SCO Loader. Maybe both. Either way, solved.


Skorpro
  • Skorpro

    GTAholic

  • Members
  • Joined: 19 Jul 2009
  • Germany

#2

Posted 29 August 2017 - 12:35 AM

REQUEST_MODEL(0x89395FC9);
while(!HAS_MODEL_LOADED(0x89395FC9)) { WAIT(0); }

The engine needs some ms to load the model ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users