COMMAND: /me because??
#1

i have a small problem!!


PHP код:
    if(strcmp(cmd"/me"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
               if(
IsPlayerConnected(playerid))
                {
                        new 
pname[MAX_PLAYER_NAME];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
pname[strfind(pname"_"false)] = ' ';
                        
format(stringsizeof(string), "%s: %d"pnametmp);
                        
ProxDetector(30.0playeridstringCOLOR_FADE1COLOR_FADE2COLOR_FADE3COLOR_FADE4COLOR_FADE5);
                }
        }
        return 
1;
    } 
Reply
#2

Quote:
Originally Posted by falco3205
Посмотреть сообщение
i have a small problem!!


PHP код:
    if(strcmp(cmd"/me"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
               if(
IsPlayerConnected(playerid))
                {
                        new 
pname[MAX_PLAYER_NAME];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
pname[strfind(pname"_"false)] = ' ';
                        
format(stringsizeof(string), "%s: %d"pnametmp);
                        
ProxDetector(30.0playeridstringCOLOR_FADE1COLOR_FADE2COLOR_FADE3COLOR_FADE4COLOR_FADE5);
                }
        }
        return 
1;
    } 
What's wrong??

I think it is correct
Reply
#3

* falco3205 text
in game
Braian_Smith:231
not compared text
sorry for my bad enghlis
Reply
#4

pawn Код:
if(strcmp(cmd, "/me", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
               if(IsPlayerConnected(playerid))
                {
                        new pname[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, pname, sizeof(pname));
                        pname[strfind(pname, "_", false)] = ' ';
                        format(string, sizeof(string), "%s:%s", pname, tmp);
                        ProxDetector(30.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
                }
        }
        return 1;
    }
%d for numbers
%s for strings/text
Reply
#5

Thanks!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)