Why all people Releasing things in sqlite You guys should post in both
Re: Basic Property System (with pickup model changing)
« Reply #15, on April 13th, 2017, 03:12 PM »
Why all people Releasing things in sqlite You guys should post in both
Help me it gives error on cmd : AN ERROR HAS OCCURED [the index 'command' does not exist
onPlayerCommand( player, command, text )
local cmd = command.tolower();
Use this format for your function:Quote from Yankee on May 27th, 2017, 09:29 AM Help me it gives error on cmd : AN ERROR HAS OCCURED [the index 'command' does not existCode: [Select] onPlayerCommand( player, command, text )
Then (by the instalation guide of this system) you will have this as a top line in the function:Code: [Select] local cmd = command.tolower();
When I hit the pickup, nothing happens ...
Only appeared once.
function onPickupPickedUp( player, pickup )
{
if ( pickup.Model == 407 )
{
if( prop[ pickup.ID ] != null )
{
local id = pickup.ID,
propid = prop[ id ].ID,
name = prop[ id ].Name,
price = prop[ id ].Price,
owner = prop[ id ].Owner,
sharing = prop[ id ].Sharing,
description = prop[ id ].Description;
C_MSG2( "ID:[#FFFFFF] " + propid + " [#FFFF00]Nome:[#FFFFFF] " + name + " [#FFFF00]Preco:[#FFFFFF] " + price + "[#FFFF00].", player );
}
}
if ( pickup.Model == 406 )
{
if( prop[ pickup.ID ] != null )
{
local id = pickup.ID,
propid = prop[ id ].ID,
name = prop[ id ].Name,
price = prop[ id ].Price,
owner = prop[ id ].Owner,
sharing = prop[ id ].Sharing,
description = prop[ id ].Description;
C_MSG( "[#CAE1FF]ID:[#FFFFFF] " + propid + " [#CAE1FF]Nome:[#FFFFFF] " + name + " [#CAE1FF]Dono:[#FFFFFF] " + owner + " [#CAE1FF]Compartilhada com:[#FFFFFF] " + sharing + "[#CAE1FF].", player );
}
}
}
Try implementing my script in a blank server. If it works, then it's good.
This will mean you have implemented it wrongly in your screenshoted server.
When I create a property it works correctly, but when I reboot the server from this error.
PS2: You must place CreateProperties before any other CreatePickup() !
Just added in my server now and watched the whole code Very nice work how you done it just few queries + clean code no spam :D
Just awesome work nothing else