Incognito's streamer plugin -
sim_sima - 25.05.2011
Hey guys.
Im using Incognito's streamer plugin.
He made something strange that i dont understand.
Its this function:
pawn Код:
native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
and a callback:
pawn Код:
forward OnPlayerEnterDynamicArea(playerid, areaid);
What i dont understand is the
pawn Код:
worldid = -1, interiorid = -1, playerid = -1
How do i use it?
I wanna make an area, and when the player enteres it, it sends a client message to him.
Thank you.
Re: Incognito's streamer plugin -
Sascha - 25.05.2011
CreateDynamicCirlce(x, y, size, -1, -1, -1);
-1 = all worlds( / interiors / players)
"This forum requires that you wait 120 seconds between posts. Please try again in 58 seconds." << gtfo
Re: Incognito's streamer plugin -
sim_sima - 25.05.2011
Quote:
Originally Posted by Sascha
CreateDynamicCirlce(x, y, size, -1, -1, -1);
-1 = all worlds( / interiors / players)
"This forum requires that you wait 120 seconds between posts. Please try again in 58 seconds." << gtfo
|
Hmm, ok. Thanks.
Re: Incognito's streamer plugin -
1337connor - 25.05.2011
You don't need to use things like that.
If they are already pre-defined in the function (For Example abc(a,b=1,c=2); )
You only need to do
abc(a);
Re: Incognito's streamer plugin -
sim_sima - 25.05.2011
Hmm, ok. But why does it give me this warning?
pawn Код:
C:\Users\Simon\Desktop\samp server rpg\gamemodes\rpg-gm.pwn(304) : warning 202: number of arguments does not match definition
Here is line 304:
pawn Код:
InJobcentre = CreateDynamicCircle(1721.6215,-1652.6127,20.0625, 5, 1, 18, -1);
Re: Incognito's streamer plugin -
sim_sima - 25.05.2011
Nobody knows why?
Re: Incognito's streamer plugin -
Wesley221 - 25.05.2011
The -1 at the end is not needed, look carefully at the line
pawn Код:
CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
Re: Incognito's streamer plugin -
sim_sima - 27.05.2011
Quote:
Originally Posted by Wesley221
The -1 at the end is not needed, look carefully at the line
pawn Код:
CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
|
Thanks.