[HELP] having truble with "stock"..
#1

i'm having trouble with the stock i've created..

pawn Код:
stock GetPlayerFullName(playerid)
{
    new PlayerFullName[MAX_PLAYER_NAME];
    new nez;
    GetPlayerName(playerid, PlayerFullName, sizeof(PlayerFullName));
    while((nez = strfind(PlayerFullName, "_", true)) != -1) PlayerFullName[nez] = ' ';
    return PlayerFullName;
}
pawn Код:
warning 202: number of arguments does not match definition
please can anybody help me with this?.. thanks..
Reply
#2

pawn Код:
new nez = [ MAX_PLAYER_NAME + 1 ];
Only guessing.
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
pawn Код:
new nez = [ MAX_PLAYER_NAME + 1 ];
Only guessing.
pawn Код:
warning 202: number of arguments does not match definition
... stilll .....
Reply
#4

Код:
"_", true)))
Edit; Damn.. im sleepy
Reply
#5

Whats the line that has the error?...
Reply
#6

pawn Код:
stock GetPlayerFullName(playerid)
{
    new PlayerFullName[MAX_PLAYER_NAME];
    new nez;
    GetPlayerName(playerid, PlayerFullName, sizeof(PlayerFullName));
    while(!PlayerFullName[nez] == '\0')
    {
        if(PlayerFullName[nez] == '_') PlayerFullName[nez] = ' ';
        nez ++;
    }
    return PlayerFullName;
}
Reply
#7

Can you post everything inside the error window?
Reply
#8

pawn Код:
stock GetPlayerFullName(playerid)
{
    new PlayerFullName[MAX_PLAYER_NAME];
    new nez;
    GetPlayerName(playerid, PlayerFullName, sizeof(PlayerFullName));
    while((nez = strfind(PlayerFullName, "_", true,0)) != -1) PlayerFullName[nez] = ' ';
    return PlayerFullName;
}
0 after true should be optional be cant see why else its doing it
Reply
#9

same....

i've been trying them all..

and about the error rows question..

this is the error i get on every single GetPlayerName row:

pawn Код:
warning 202: number of arguments does not match definition

maybe it's something about the PUBLIC?... stock GetPlayerFullName(playerid) To stock GetPlayerFullName(playerid, ?, ?) ..
Reply
#10

pawn Код:
stock GetPlayerFullName(playerid)
{
    new PlayerFullName[MAX_PLAYER_NAME];
    new nez;
    GetPlayerName(playerid, PlayerFullName, sizeof(PlayerFullName));
    while((nez = strfind(PlayerFullName, "_", true))) != -1) PlayerFullName[nez] = ' ';
    return PlayerFullName;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)