Help 2 Problems[rep]
#1

i want to make the first letter Big..

PHP код:
if (realchat)
    {
        if(
gPlayerLogged[playerid] == 0)
        {
            return 
0;
          }
        new 
i;
        while (
text[++i])
        {
            if(
text[i] > 64 && text[i]< 91text[i] += 32;
        }
        if(
PlayerInfo[playerid][pAdmin] >= 1)
        {
            new 
Colors[] = { COLOR_WHITECOLOR_YELLOWCOLOR_LIGHTGREENTEAM_ORANGE_COLORTEAM_GROVE_COLOR0x008100AA };
            
SetPlayerChatBubble(playerid,saystextColors[random(sizeof(Colors))], 50.05000);
        }
        if(
PlayerInfo[playerid][pAdmin] >= 1)
           {
            
format(stringsizeof(string), " %s "text);
        }
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "{247BFF}%s Spune: {FF3F0F}%s"sendernametext);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        return 
0;
    }
    return 
1;

second how can i make so after the login it askes me for email adress..
Reply
#2

Try this;
pawn Код:
if( realchat )
    {
        new
            msg[ 128 ]
        ;
       
        if( !gPlayerLogged[ playerid ] )
            return 0;

        text[0] = toupper(text[0]);
       
        if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
        {
            new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, TEAM_ORANGE_COLOR, TEAM_GROVE_COLOR, 0x008100AA };
           
            format( msg, 128, "%s", text[ 0 ] );
            SetPlayerChatBubble( playerid, msg, Colors[ random( sizeof( Colors ) ) ], 50.0, 5000 );
        }
       
        if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
            format( msg, 128, "%s", text[ 0 ] );
        else {
            GetPlayerName( playerid, sendername, 24 );
           
            format( msg, 128, "{247BFF}%s Spune: {FF3F0F}%s", sendername, text[ 0 ] );
            ProxDetector( 20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5 );
        }
       
        return 0;
    }
Reply
#3

Quote:
Originally Posted by Toreno
Посмотреть сообщение
Try this;
pawn Код:
if( realchat )
    {
        new
            msg[ 128 ]
        ;
       
        if( !gPlayerLogged[ playerid ] )
            return 0;

        text[0] = toupper(text[0]);
       
        if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
        {
            new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, TEAM_ORANGE_COLOR, TEAM_GROVE_COLOR, 0x008100AA };
           
            format( msg, 128, "%s", text[ 0 ] );
            SetPlayerChatBubble( playerid, msg, Colors[ random( sizeof( Colors ) ) ], 50.0, 5000 );
        }
       
        if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
            format( msg, 128, "%s", text[ 0 ] );
        else {
            GetPlayerName( playerid, sendername, 24 );
           
            format( msg, 128, "{247BFF}%s Spune: {FF3F0F}%s", sendername, text[ 0 ] );
            ProxDetector( 20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5 );
        }
       
        return 0;
    }
pawno not responding..can you tell me which is the function that makes first letter big and then rest normal..
Reply
#4

pawn Код:
text[0] = toupper(text[0]);
Reply
#5

Quote:
Originally Posted by Toreno
Посмотреть сообщение
pawn Код:
text[0] = toupper(text[0]);
i made it buy theres a problem if i put an emtioan it's :d
Reply
#6

anyone helping please. if i put emoation like .but it game it appears like :d
Reply
#7

PHP код:
text[0] = toupper(text[0]);
if 
do :D it will appear like this:  :d can i make this big too?? 
Reply
#8

Change the 0 To a 1

A string is just an array of chars

Gl
Reply
#9

i did and something goes wrong try it..please

text[1] = toupper(text[1]);
like this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)