13.11.2013, 16:54
warning 219: local variable "giveplayerid" shadows a variable at a preceding level < That x65.
Happened when I added RPN(giveplayerid) stock, anyway to combine them or to remove the warnings?
Код:
stock RPN(giveplayerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(giveplayerid,name,sizeof(name)); for(new i = 0; i < MAX_PLAYER_NAME; i++) { if(name[i] == '_') name[i] = ' '; } return name; } stock RemoveUnderScore(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); for(new i = 0; i < MAX_PLAYER_NAME; i++) { if(name[i] == '_') name[i] = ' '; } return name; }