Problem /show
#1

/showbuletin doesent show the player shat im show identification why did admins erase my topic??

PHP код:
    if(strcmp(cmd,"/showbuletin",true)==0)
                    {
                    if(
IsPlayerConnected(playerid))
                    {
                    
tmp strtok(cmdtextidx);
                    if(!
strlen(tmp))
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"USAGE: /showbuletin [playerid/PartOfName]");
                        return 
1;
                    }
                    
giveplayerid ReturnUser(tmp);
                    if(
IsPlayerConnected(giveplayerid))
                    {
                        if(
giveplayerid != INVALID_PLAYER_ID)
                        {
                            if (
ProxDetectorS(8.0playeridgiveplayerid))
                            {
                                if(
PlayerInfo[playerid][pBuletin] < 1)
                                {
                                    
SendClientMessage(playeridCOLOR_WHITE"You don't have a buletin to show!");
                                }
                                if(
giveplayerid == playerid) { SendClientMessage(playeridCOLOR_GREY"You cannot Show your Buletin to yourself, use /buletin!"); return 1; }
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                                new 
otext[20];
                                new 
atext[20];
                                new 
str[256];
                                if(
PlayerInfo[playerid][pOrigin] == 1) { otext "Romania"; }
                                else if(
PlayerInfo[playerid][pOrigin] == 2) { otext "Bucuresti"; }
                                else if(
PlayerInfo[playerid][pOrigin] == 3) { otext "Sibiu"; }
                                else if(
PlayerInfo[playerid][pOrigin] == 4) { otext "Brasov"; }
                                if(
PlayerInfo[playerid][pSex] == 1) { atext "Masculin"; }
                                else if(
PlayerInfo[playerid][pSex] == 2) { atext "Feminin"; }
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                                
format(stringsizeof(string), "* %s has shown his Buletin to you."sendername);
                                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                                
format(stringsizeof(string), "* You have shown your Buletin to %s."giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                                
format(str,sizeof(str), "|-----------|ROMANIA|----------|",giveplayer);
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                                
format(str,sizeof(str), "Nume: %s",giveplayer);
                                
SendClientMessage(playeridCOLOR_WHITEstr);
                                
format(str,sizeof(str), "Varsta: %d",PlayerInfo[playerid][pAge],giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstr);
                                
format(str,sizeof(str), "Origin: %s",otext,giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTREDstr);
                                
format(str,sizeof(str), "Sex: %s",atext,giveplayer);
                                
SendClientMessage(playeridCOLOR_YELLOWstr);
                                
format(str,sizeof(str), "|-------------------------------|",giveplayer);
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   That player is not near you !");
                                return 
1;
                            }
                        }
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   That player is Offline !");
                        return 
1;
                    }
                    }
                    return 
1;
                    } 
Reply
#2

Are there any errors?
Reply
#3

no errors..i cant show player..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)