[Help!!!] How to usethis Public!! - 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: [Help!!!] How to usethis Public!! (
/showthread.php?tid=77619)
[Help!!!] How to usethis Public!! -
MarcoNecroX - 12.05.2009
Hi.
How can I use this native in my xObjects script!?
Код:
public IsValidObjectModel( modelid )
{
switch( modelid )
{
}
}
:S ?
Re: [Help!!!] How to usethis Public!! -
Backwardsman97 - 13.05.2009
You would need every good object, or bad object, in a list to search from. So you can go in game with some kind of script and create/destroy every object and copy the ones that make you crash.
Re: [Help!!!] How to usethis Public!! -
MarcoNecroX - 15.05.2009
I have the list obviously in
switch (modelid)
{
list...
}
I mean how can I use it with xObjects (I have the list!)
Re: [Help!!!] How to usethis Public!! -
Backwardsman97 - 15.05.2009
Let's say for example, objects 100 , 150, 175 - 180, and 502 were bad. You might do something like this.
pawn Код:
switch(modelid)
{
case 100,150,502,175..180:
{
//It's bad
}
}