I got a problem.
#3

PHP код:
CMD:ddafk(playerid,params[]) 
{
    if(
PlayerInfo[playerid][DD] >= 1
    {
        new 
string[256],kuldoneve[MAX_PLAYER_NAME];
        
SendClientMessage(playerid,0x99FF00AA,"Type /ddback when you back.");
        
GameTextForPlayer(playerid,"~r~ You are now AFK"50001);
        new 
Text3D:AFKTextLabel[MAX_PLAYERS];
        
AFKTextLabel[playerid] = Create3DTextLabel"AFK"0xFF0000FF0.00.02.04000); //error
        
Attach3DTextLabelToPlayer(AFKTextLabel[playerid], playerid0.00.00.4);
        
TogglePlayerControllable(playerid0);
        
GetPlayerName(playeridkuldonevesizeof(kuldoneve));
        
format(stringsizeof(string), "[DareDevil] %s %s(%d) now away from keyboard"GetLevel(playerid), kuldoneveplayerid);
        
SendClientMessageToAll(0xFFFF00AAstring);
        return 
1;
    } 
    else return 
ShowPlayerDialog(playerid5DIALOG_STYLE_MSGBOX"ERROR""You need to be higher DD Level to use this command""OK""Cancel");
}

GetLevel(playerid)
{
    new 
ranklevel[36];
    switch(
PlayerInfo[playerid][DD])
    {
        case 
1ranklevel "Newest Devil";
        case 
2ranklevel "Proud Devil";
        case 
3ranklevel "Light Devil";
        case 
4ranklevel "Experienced Devil";
        case 
5ranklevel "Doom Knight";
        case 
6ranklevel "Death Wisher";
        case 
7ranklevel "Golden Devil";
        case 
8ranklevel "Elite Devils";
        case 
9ranklevel "The Maestro";
        case 
10ranklevel "The DareDevils";
    }
    return 
ranklevel;

Reply


Messages In This Thread
I got a problem. - by Kyriee - 27.08.2016, 10:32
Re: I got a problem. - by luke49 - 27.08.2016, 11:16
Re: I got a problem. - by oMa37 - 27.08.2016, 11:18
Re: I got a problem. - by Crosslife - 27.08.2016, 11:25
Re: I got a problem. - by Kyriee - 27.08.2016, 18:48
Re: I got a problem. - by Kyriee - 28.08.2016, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)