SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 11/06/2010, 01:48 PM   #1001
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,621
Reputation: 12
Default Re: [REL] Streamer Plugin v2.3.8

pawn Code:
DestroyAllDynamicMapIcons();
Luka P. is offline   Reply With Quote
Old 11/06/2010, 01:53 PM   #1002
Sergei
High-roller
 
Sergei's Avatar
 
Join Date: Mar 2008
Location: Slovenia
Posts: 2,729
Reputation: 134
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by Luka�
Quote:
Originally Posted by $�#1071;Ģ
Code:
new myIcon[99];
So 98 + 1 = 99, you can't have 100 icon IDs stored in that array.
Wut?
You have 100 cells there.. 0, 1, 2, 3 -> 99 = 100 cells
You joking? I hope you do.
Sergei is offline   Reply With Quote
Old 11/06/2010, 01:55 PM   #1003
[03]Garsino
Guest
 
Posts: n/a
Default Re: [REL] Streamer Plugin v2.3.8

pawn Code:
new myicon[100]; // Create the variable wich consists of 100 cells.
pawn Code:
// When you're using myicon after creating it, only the cells 0 -> 99 can be used, 100 can NOT be used.
// 0..99 = 100
  Reply With Quote
Old 11/06/2010, 01:58 PM   #1004
dcmd_crash
Huge Clucker
 
Join Date: Apr 2010
Posts: 223
Reputation: 1
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by Luka™
pawn Code:
DestroyAllDynamicMapIcons();
Tut, ok ... say I have 50 and want to delete 49 of them -.-
dcmd_crash is offline   Reply With Quote
Old 11/06/2010, 02:05 PM   #1005
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,621
Reputation: 12
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by [03
Garsino ]
pawn Code:
new myicon[100]; // Create the variable wich consists of 100 cells.
pawn Code:
// When you're using myicon after creating it, only the cells 0 -> 99 can be used, 100 can NOT be used.
// 0..99 = 100
Of course it can't be used, it goes out of array bounds -.-
But lets take some lower number like 10, you do

pawn Code:
new myIcon[9]; // 10 cells!

Now you are able to create 10 icons

pawn Code:
myIcon[0], myIcon[1], myIcon[2], myIcon[3], myIcon[4], myIcon[5], myIcon[6], myIcon[7], myIcon[8], myIcon[9]

Whats the problem?
Luka P. is offline   Reply With Quote
Old 11/06/2010, 02:08 PM   #1006
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,621
Reputation: 12
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by _❼_
Quote:
Originally Posted by Luka™
pawn Code:
DestroyAllDynamicMapIcons();
Tut, ok ... say I have 50 and want to delete 49 of them -.-
I made this (not sure if it is going to work)

pawn Code:
stock DestroyDynamicMapIconRange(start, end);
{
    for(new i=start; i < end; i++)
    {
        DestoryDynamicObject(myIcons[i]);
    }
}

EDIT : Sorry for DP
Luka P. is offline   Reply With Quote
Old 11/06/2010, 02:08 PM   #1007
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,933
Reputation: 1862
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by _❼_
Quote:
Originally Posted by Luka™
pawn Code:
DestroyAllDynamicMapIcons();
Tut, ok ... say I have 50 and want to delete 49 of them -.-
Loop through all of them and make an exception for that last remaining one?

Downloading now, plugins are fer kewl peoplez. Which makes me wonder why I didn't download this before.
__________________
Don't PM me.
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 11/06/2010, 02:10 PM   #1008
dcmd_crash
Huge Clucker
 
Join Date: Apr 2010
Posts: 223
Reputation: 1
Default Re: [REL] Streamer Plugin v2.3.8

Quote:
Originally Posted by Luka™
Quote:
Originally Posted by _❼_
Quote:
Originally Posted by Luka™
pawn Code:
DestroyAllDynamicMapIcons();
Tut, ok ... say I have 50 and want to delete 49 of them -.-
I made this (not sure if it is going to work)

pawn Code:
stock DestroyDynamicMapIconRange(start, end);
{
    for(new i=start; i < end; i++)
    {
        DestoryDynamicObject(myIcons[i]);
    }
}

EDIT : Sorry for DP
Hmm, I never think of the things so simple lol. Thanks dude

dcmd_crash is offline   Reply With Quote
Old 11/06/2010, 04:02 PM   #1009
dmstealth
Little Clucker
 
Join Date: Feb 2010
Posts: 16
Reputation: 0
Default Re: [REL] Streamer Plugin v2.3.8

Thanks! It's really nice!
dmstealth is offline   Reply With Quote
Old 11/06/2010, 10:55 PM   #1010
TheInnocentOne
Guest
 
Posts: n/a
Default Re: [REL] Streamer Plugin v2.3.8

Great Release Incognito

Using it in my script now
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Checkpoint / Area sub-streamer for incognito's streamer plugin Pottus Includes 11 21/03/2014 06:31 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 07:33 AM
Streamer plugin 0.3d blinkpnk Plugin Development 7 05/12/2011 07:17 PM
Streamer Plugin Help! ColdXX Everything and Nothing 2 21/08/2010 10:28 PM
Streamer Plugin! ColdXX Help Archive 10 18/07/2010 12:47 PM


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.