ID Bug
#1

hey guys i got this problem with my ID Bug, any IDs can get bugged when ever they want as i mean if youopen the server everythings good after some minutes it starts telling that that ID isnt online with All the CMDs.... any ideas?

and also could i ask some more help i know it dosent go under this but any ideas why it gives me 2 texts?

Код:
	if(PlayerInfo[playerid][pDonateRank] == 1)
	{
	    new string[128];
		format(string, sizeof(string), "** (( {CC6600}Bronze VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
	}
	if(PlayerInfo[playerid][pDonateRank] == 2)
	{
	    new string[128];
		format(string, sizeof(string), "** (( {999999}Silver VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
	}
	if(PlayerInfo[playerid][pDonateRank] == 3)
	{
	    new string[128];
		format(string, sizeof(string), "** (( {FFD700}Gold VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
	}
	if(PlayerInfo[playerid][pDonateRank] == 4)
	{
	    new string[128];
		format(string, sizeof(string), "** (( {00CC99}Platinum VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
	}
	if(PlayerInfo[playerid][pDonateRank] == 5)
	{
	    new string[128];
		format(string, sizeof(string), "(( {00FFFF}Diamond VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
	}
just to note that the Diamond VIP dosent give texts it works properly like it should
Reply
#2

pawn Код:
new string[150];
switch(PlayerInfo[playerid][pDonateRank])
{
    //case 0: return 1;
    case 1: format(string, sizeof(string), "** (( {CC6600}Bronze VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
    case 2: format(string, sizeof(string), "** (( {999999}Silver VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
    case 3: format(string, sizeof(string), "** (( {FFD700}Gold VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
    case 4: format(string, sizeof(string), "** (( {00CC99}Platinum VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
    case 5: format(string, sizeof(string), "**(( {00FFFF}Diamond VIP{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
    //default: return 1;
}
OOCOff(COLOR_OOC,string);
There doesn't appear to be anything wrong with the code, however there may be an issue with your OOCOff function. Please show us your stock/public function for that.

Is this the only part of your code that is affected, or does the entire server and its commands get affected by this?
If it is the whole server being affected, then you may want to try updating your plugins, recompiling and then uploading the latest plugins to the server. Occasionally, this happens with an outdated sscanf plugin.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)