Seed Weed, Mysql
#1

[S'rry for my bad bad english, I'm french..]


Hi,

I make a system for /plantseed ( /plantergraine ) and /takeweed (/ramasserweed) but I can plant just 1 seed because the position of the seed = wplant[playerid] = CreateDynamicObject( 3409, x, y, z-2 , 0, 0, 96 );

If i plant 2 seed, i can just recolt the second seed..

I want make this with Mysql and all player can collect all seed... But i don't know how to make with Mysql..

Command:
http://pastebin.com/1grjgqXG

forward, public:
http://pastebin.com/dgvUnTdg

Thank's

Introx.
Reply
#2

create a field in table of weed -> ( Username ), if weed was planted by username, then you can take it.
Just create a loop, check position and check username.
Reply
#3

And how i can check coordonnйe with mysql please?

if(PlayerToPoint(2.0, playerid, HERE, HERE, HERE))
Reply
#4

simply create column x,y,z with type float
Reply
#5

Hmm thank's, but how i can destroyobject with mysql?
How the gamemode know where is the position of a plant, if i have 2, 3, 4 weed ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)