Jump to content
  • 0

warn-uri


mihai441

Question

Am si eu niste erori si nu stiu cum sa le rezolv (din cauza lor am buguri la HQ-uri)

E:\Indungi HD Rp\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
E:\Indungi HD Rp\gamemodes\Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "CapsOnEnd"
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "ConsecutiveCaps"
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "IsInvalid"
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "NumOccurences"
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooManyCaps"
E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooShortOnEnd"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Warnings.

Nu am randul 53139 ultimul rand este 53138.

Puteti sa ma ajutati?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Prima linie:

	if(IsPlayerConnected(i))
		{
			GetPlayerPos(i, oldposx, oldposy, oldposz);
			new tmpcar = GetPlayerVehicleID(i);
			if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
			{  [color=red][i][b]// aici vine linia 3248[/b][/i][/color]
			
A doua:
	while (idx < sizeof(SBizzInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
		SBizzInfo[idx][sbOwned],
		SBizzInfo[idx][sbOwner],
		SBizzInfo[idx][sbMessage],
		SBizzInfo[idx][sbExtortion],
		SBizzInfo[idx][sbEntranceX],
		SBizzInfo[idx][sbEntranceY],
		SBizzInfo[idx][sbEntranceZ],
		SBizzInfo[idx][sbLevelNeeded],
		SBizzInfo[idx][sbBuyPrice],
		SBizzInfo[idx][sbEntranceCost],
		SBizzInfo[idx][sbTill],
		SBizzInfo[idx][sbLocked],
		SBizzInfo[idx][sbInterior],
		SBizzInfo[idx][sbProducts],
		SBizzInfo[idx][sbMaxProducts],
		SBizzInfo[idx][sbPriceProd]);
		if(idx == 0)
		{
			file2 = fopen("sbizz.cfg", io_write);
		}
		else
		{  [color=red][size=18pt][i][b]// aici vine linia [/b][/i][/size][/color]
			file2 = fopen("sbizz.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}
//
iar la ultimele nu pot sa pun // deoarece verifica numele si fara ele da eroare, sunt puse la sfarsit in genul asta :
CapsOnEnd(name[])
{
    new sz;
    sz=strlen(name[0]);
    if(CHC_IsUpper(name[sz-1])) return 1;
    if(CHC_IsUpper(name[FirstSeperationLoc(name[0])-1])) return 1;
    return 0;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.