Kalcor - ospawner.pwn filterscript.
#1

How does it get a list of the objects to show?



I see: CreateModelPreviewTextDraw(playerid, itemat

With `itemat` being the model but I don't see `itemat` being set with the loop and only once within the function so how does the model change?

Regards
Reply
#2

Itemat is added to each time the loop processes. So it was originally the value of the PVar, then it just gets added to.
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Itemat is added to each time the loop processes. So it was originally the value of the PVar, then it just gets added to.
I didn't notice that increment, but even so how can that work out as a model id?
Reply
#4

Is it possible to only display a list of object ID's I have in an array, if so how?

Regards
Reply
#5

ospawner_page should be set to 0 when first started.

In the while loop ... itemat < sizeof(FurnitureItems) ... instead of ... itemat < gTotalItems

CreateModelPreviewTextDraw(playerid, FurnitureItems[itemat][FurniID], ...

itemat will serve as the place in the array, not the model id.
Reply
#6

Quote:
Originally Posted by Austin
Посмотреть сообщение
ospawner_page should be set to 0 when first started.

In the while loop ... itemat < sizeof(FurnitureItems) ... instead of ... itemat < gTotalItems

CreateModelPreviewTextDraw(playerid, FurnitureItems[itemat][FurniID], ...

itemat will serve as the place in the array, not the model id.
Thank you!

[23:46:00] Austin Brock: hope it works
[23:46:05] Austin Brock: although, I’d put my dick on it working

^ you better be right otherwise I'm chopping it off.
Reply
#7

Can you break it at the 8 inches length so I can keep some of it? I'm going to miss the other 6 .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)