Drag command
#10

Quote:
Originally Posted by FaZeRs
Посмотреть сообщение
Did it. But now i got

PHP код:
C:\Users\Euronics Latvija\Desktop\LCRP\gamemodes\nlrp.pwn(106736) : error 017undefined symbol "RemoveUnderScore"
C:\Users\Euronics Latvija\Desktop\LCRP\gamemodes\nlrp.pwn(106737) : error 017undefined symbol "RemoveUnderScore" 
When you copy a script into your code you have to make sure that you have all the functions that are being used within that code. I can write a quick version of that function but in the future you will have to find them yourself.

The error "undefined symbol "(..)" " means that whatever it tells you is not in the script and is being called. You have to either add the missing function by yourself scripting it from zero or change it and adapt to your current script functions.

pawn Код:
stock RemoveUnderScore(playerid)
{
    new name[MAX_PLAYER_NAME],pos;
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);

    while(strfind(name,"_",true) != -1)
    {
        pos = strfind(name,"_",true);
        name[pos] = ' ';
    }

    return name;
}
Not tested, but compiles fine.
Reply


Messages In This Thread
Drag command - by FaZeRs - 02.02.2014, 00:21
Re: Drag command - by CuervO - 02.02.2014, 00:26
Re: Drag command - by FaZeRs - 02.02.2014, 00:28
Re: Drag command - by CuervO - 02.02.2014, 00:36
Re: Drag command - by FaZeRs - 02.02.2014, 01:26
Re: Drag command - by CuervO - 02.02.2014, 01:55
Re: Drag command - by FaZeRs - 02.02.2014, 02:08
Re: Drag command - by CuervO - 02.02.2014, 02:10
Re: Drag command - by FaZeRs - 02.02.2014, 02:14
Re: Drag command - by CuervO - 02.02.2014, 02:23

Forum Jump:


Users browsing this thread: 1 Guest(s)