Retard, from glancing at the code make these corrections and see if you still have a problem. I will look into it further if you still have issues.
PHP Code:
cmd_ChangeRule(id, key)
PHP Code:
cmd_ChangeRule(id, const key[] )
And
PHP Code:
public ShowRule( id, key )
{
//Read 2 items that that are saved in the same entry
//Example: RULE-1 "HELP ME!"
new szData[8];
new szKey[40];
formatex( szKey , 39 , "%s" , key );
//If data was found
if ( nvault_get( rrm_Rules , szKey , szData , 7 ) )
{
ColorChat(id, GREEN, "%s^x01 Rule^x03 %s:^x01 %s", PLUGIN_PREFIX, szKey, szData);
}
else
{
ColorChat(id, GREEN, "%s^x01 Rule^x03 %s:^x01 Wasn't found, make a new Entry!", PLUGIN_PREFIX, key);
}
}
PHP Code:
public ShowRule( id, const szKey[] )
{
//Read 2 items that that are saved in the same entry
//Example: RULE-1 "HELP ME!"
new szData[8];
//If data was found
if ( nvault_get( rrm_Rules , szKey , szData , 7 ) )
{
ColorChat(id, GREEN, "%s^x01 Rule^x03 %s:^x01 %s", PLUGIN_PREFIX, szKey, szData);
}
else
{
ColorChat(id, GREEN, "%s^x01 Rule^x03 %s:^x01 Wasn't found, make a new Entry!", PLUGIN_PREFIX, szKey);
}
}
__________________