Incognito's streamer plugin
#1

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.
Reply
#2

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
Reply
#3

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.
Reply
#4

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);
Reply
#5

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);
Reply
#6

Nobody knows why?
Reply
#7

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);
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)