#1

Am incercat sa fac o comanda

Quote:

if(strcmp(cmd, "/tccduty", true) == 0 || strcmp(cmd, "/tccduty", true) == 0)
{

if(IsPlayerConnected(i))
}
if(PlayerInfo[i][pMember] == 17)
}

if(tccind[playerid] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new string2[256];
tccind[playerid] = 1;
format(string2,sizeof(string2), "%s Este Acuma La Datorie Pentru A Tracta Orice Masina", sendername);
ABroadCast(COLOR_YELLOW,string2,1);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new string3[256];
tccind[playerid] = 0;
format(string3,sizeof(string3), "%s Nu Mai Este La Datorie Pentru A Tracta Masini.", sendername);
ABroadCast(COLOR_YELLOW,string3,1);

}
}
return 1;

si uitati ce erori imi da ... nu inteleg cum sa le rezolv


Quote:

C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 364) : warning 235: public function lacks forward declaration (symbol "adminbaseclose")
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(8 916) : warning 204: symbol is assigned a value that is never used: "carkey"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2293) : error 017: undefined symbol "i"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2294) : error 029: invalid expression, assumed zero
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2294 -- 22295) : warning 215: expression has no effect
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2295) : error 001: expected token: ";", but found "if"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2295) : error 017: undefined symbol "i"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2295) : fatal error 107: too many error messages on one line

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


5 Errors.

Sa ma ajute cineva!


Cu respect , Tibiutza
Reply
#2

Code:
if(strcmp(cmd, "/tccduty", true) == 0)
{
		new str[128];
		if(PlayerInfo[playerid][pMember] == 17)
		{
			if(tccind[playerid] == 0)
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
				tccind[playerid] = 1;
				format(str,sizeof(str), "%s Este Acuma La Datorie Pentru A Tracta Orice Masina", sendername);
				ABroadCast(COLOR_YELLOW,str2,1);
			}
			else
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string3[256];
				tccind[playerid] = 0;
				format(str,sizeof(str), "%s Nu Mai Este La Datorie Pentru A Tracta Masini.", sendername);
				ABroadCast(COLOR_YELLOW,str,1);
			}
		}
		return 1;
}
Reply
#3

Quote:

C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 364) : warning 235: public function lacks forward declaration (symbol "adminbaseclose")
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(8 916) : warning 204: symbol is assigned a value that is never used: "carkey"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2301) : error 017: undefined symbol "str2"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(2 2306) : warning 204: symbol is assigned a value that is never used: "string3"
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(4 5187) : warning 213: tag mismatch
C:\Users\Tibi\Desktop\f\gamemodes\blackpedia.pwn(4 5187) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Uite ce imi da




EDIT : Am Rezolvat , Multumesc!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)