[Ajuda] Sistema de Sуcios bugado
#1

eae pessoal,

quando eu dou qualquer sуcio sendo prata ou ouro ele fica como bronze. nunca fica prata ou ouro.

nem no /socios mostra que estб com prata ou ouro, й sempre Bronze que mostra.



Код:
if (strcmp(cmd, "/socios", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
			SendClientMessage(playerid, 0x33FF00FF, "|_________[BSG]___{FF7800}Sуcios Online {33FF00}___[BSG]_______|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(PlayerInfo[i][pSocio] == 1)
				    {
						GetPlayerName(i, sendername, sizeof(sendername));
						format(string, 128, "{FF5A00}Sуcio: {A67D3D}%s {FF5A00}[Sуcio {A67D3D}Bronze{FF5A00}]", sendername);
						SendClientMessage(playerid, 0x602F00AA, string);
					}
					else if(PlayerInfo[i][pSocio] == 2)
				    {
						GetPlayerName(i,sendername,sizeof(sendername));
						format(string,128, "{FF5A00}Sуcio: {AAAAAA}%s {FF5A00}[Sуcio {AAAAAA}Prata{FF5A00}]",sendername);
						SendClientMessage(playerid, 0xFFFEF0AA, string);
					}
					else if(PlayerInfo[i][pSocio] == 3)
				    {
						GetPlayerName(i,sendername,sizeof(sendername));
						format(string,128, "{FF5A00}Sуcio: {FFFF00}%s {FF5A00}[Sуcio {FFFF00}Ouro{FF5A00}]",sendername);
						SendClientMessage(playerid, 0xFFFE08AA, string);
					}
				}
			}
		}
		return 1;
	}
Код:
if(strcmp(cmd, "/darsocio", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
				return true;
			}
			new para1;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			if(PlayerInfo[playerid][pAdmin] == DONO)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pSocio] = 1;
						format(string, sizeof(string), "Vocк ganhou Sуcio do admin %s", sendername);
						SendClientMessage(para1, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "Vocк deu Sуcio para %s.", giveplayer);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
			}
		}
		return true;
	}
Obrigado
Reply


Messages In This Thread
[Ajuda] Sistema de Sуcios bugado - by Urubu_Rei - 22.04.2012, 21:38
Re: [Ajuda] Sistema de Sуcios bugado - by RoacH` - 22.04.2012, 21:51
Re: [Ajuda] Sistema de Sуcios bugado - by luizfel2 - 22.04.2012, 21:53
Re: [Ajuda] Sistema de Sуcios bugado - by rjjj - 22.04.2012, 21:58
Re: [Ajuda] Sistema de Sуcios bugado - by Urubu_Rei - 22.04.2012, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)