little help +1 rep
#4

Код:
public OnPlayerText(playerid, text[])
stock ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(!IsPlayerConnected(i))continue;
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) SendClientMessage(i,color,string);
    }
{
}
stock GetName(playerid)
{
	new string[MAX_PLAYER_NAME];
	GetPlayerName(playerid,string,sizeof(string));
	strreplace(string,'_',' ');
	return string;
{
	new str[128];
	format(string,sizeof(string),"%s says: %s",GetName(playerid),text;
	ProxDetector(30.0, playerid, str, COLOR_WHITE);
	return 0;
}
Код:
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(181) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(185) : error 017: undefined symbol "foreach"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(187) : error 017: undefined symbol "i"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(187) : error 024: "break" or "continue" is out of context
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(188) : error 017: undefined symbol "i"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(188) : error 017: undefined symbol "i"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(190) : warning 217: loose indentation
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(192) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(192) : error 017: undefined symbol "GetName"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(194) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(196) : error 017: undefined symbol "strreplace"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(198) : warning 225: unreachable code
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(198) : warning 217: loose indentation
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(200) : error 017: undefined symbol "GetName"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(200) : error 001: expected token: ",", but found ";"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(202) : error 079: inconsistent return types (array & non-array)
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(204) : warning 225: unreachable code
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(204) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(204) : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(206) : error 017: undefined symbol "cmdtext"
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(209) : error 079: inconsistent return types (array & non-array)
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(211) : error 079: inconsistent return types (array & non-array)
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(214) : warning 225: unreachable code
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(214) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(214) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(216) : error 079: inconsistent return types (array & non-array)
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(219) : warning 225: unreachable code
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(219) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(219) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(221) : error 079: inconsistent return types (array & non-array)
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(224) : warning 225: unreachable code
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(224) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(224) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\User\Desktop\GangWar\gamemodes\Test.pwn(226) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
STILL NOT working
Reply


Messages In This Thread
little help +1 rep - by Alexy_Dramon - 19.03.2012, 07:58
Re: little help +1 rep - by ReneG - 19.03.2012, 08:05
Re: little help +1 rep - by Alexy_Dramon - 19.03.2012, 08:07
Re: little help +1 rep - by Alexy_Dramon - 19.03.2012, 11:00
Re: little help +1 rep - by Roel - 19.03.2012, 11:04
Re: little help +1 rep - by Alexy_Dramon - 19.03.2012, 11:31
Re: little help +1 rep - by .:Kaos:. - 19.03.2012, 11:33
Re: little help +1 rep - by Roel - 19.03.2012, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)