08.05.2012, 15:02
I get these errors, please help me.
I've marked the line numbers.
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(66) : error 025: function heading differs from prototype
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(67) : error 021: symbol already defined: "strreplace"
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(75) : warning 209: function "strreplace" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
SCRIPT:
Please help me, I will +rep!
I've marked the line numbers.
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(66) : error 025: function heading differs from prototype
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(67) : error 021: symbol already defined: "strreplace"
C:\Users\Arjan\Desktop\MIJN RP\gamemodes\MYRP.pwn(75) : warning 209: function "strreplace" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
SCRIPT:
Code:
//---------------CHAT SYSTEM-------------------- 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; } stock ProxDetector(Float:radi, playerid, string[],color) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); foreach(Player,i) { if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) { SendClientMessage(i,color,string); } } }