14.12.2012, 22:53
I got this code:
I get this error:
I am trying to make a command that will replce the GetPlayerName with GetName without changing ALL my GetPlayerNames and deleting the variables. (I am editing GF). Help.
pawn Код:
stock GetName(playerid, const name[], len)
{
GetPlayerName(playerid, name, len);
name[strfind(name, "_")] = ' '; // LINE 26245
return name;
}
Код:
C:\Users\Yuval\Desktop\SantosCityRolePlay\gamemodes\gf.pwn(26245) : error 022: must be lvalue (non-constant) C:\Users\Yuval\Desktop\SantosCityRolePlay\gamemodes\gf.pwn(26245) : warning 215: expression has no effect