28.10.2012, 19:52
Hi, I've used this code:
And I'm getting this error:
Help will be appreciated.
Код:
stock strreplace(string[], find, replace) { for(new i=0; string[i]; i++) { if(string[i] == find) { string[i] = replace; } } } stock GetName(playerid) { new name[24]; GetPlayerName(playerid, name, sizeof(name)); strreplace(name, "_", " "); return name; }
Код:
C:\Users\Yakir\Desktop\The Best Server\gamemodes\GM.pwn(310) : error 035: argument type mismatch (argument 2)