30.07.2011, 09:20
Hello forum, If anyone could explain to me why this small function does not work I would be very thankful, the idea of the function is to return the file location of the player specified.
I wanted to make my own "filename" parameter for convenience so for the future I can easily access files.
The problem is I get these 2 warnings:
Thanks.
pawn Код:
stock GetPlayerFile(playerid,filename[])
{
if(strcmp(filename,"register",0) == 0)// line 13
{
new file[256],name[24];
GetPlayerName(playerid,name,24);
format(file,sizeof(file),"Register/%s",name);
return file;
}
}//line 20
The problem is I get these 2 warnings:
Код:
Line 13: warning 213: tag mismatch Line 20: warning 209: function "GetPlayerFile" should return a value