Question about y_ini saving..
#1

I have made Administration now I need to make a new saving file...

So if I use almost the same saving only with new enmu like gInfo etc

But If I use
Then I got str errors and new are defined multiple times...

pawn Код:
stock GPath(playerid)
{
    new str[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),Path,name);
    return str;
}
pawn Код:
stock Path(playerid)
{
    new str[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),UserPath,name);
    return str;
}
Reply
#2

You have a global variable somewhere with the name of "str". Change it (as it's a horrible variable name anyway).
Reply
#3

to string? if so then string will shadow too...
Reply
#4

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
to string? if so then string will shadow too...
Variable names are limitless...

One more reasonable name would be g_string.
Reply
#5

And how I can define name in diffrent?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)