What i did wrong? Help?
#1

Tell me what's wrong within those lines, or what i missed up.
Код:
C:\Users\Machlik\Desktop\Moje syfy\Ravens_Finals\gamemodes\RP.pwn(12536) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Machlik\Desktop\Moje syfy\Ravens_Finals\gamemodes\RP.pwn(12770) : error 025: function heading differs from prototype
C:\Users\Machlik\Desktop\Moje syfy\Ravens_Finals\gamemodes\RP.pwn(12830) : error 001: expected token: ";", but found "}"
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(26592) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(26856) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(34815) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(44358) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(44554) : warning 202: number of arguments does not match definition
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(44615) : warning 202: number of arguments does not match definition
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(51805) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Machlik\Desktop\Moje syfy\Tomek\gamemodes\RP.pwn(53065) : warning 203: symbol is never used: "gSANZones"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Now the Lines WRONG
Код:
	x22 = HouseInfo[houseid][hEntrancex]; y22 = HouseInfo[houseid][hEntrancey];//12536
Код:
public OnPropUpdate(update)//12770
Код:
			    file2 = fopen("LARP/Properties/property.cfg", io_append)
			}//12830
			fwrite(file2, coordsstring);
			idx++;
			fclose(file2);
		}
Код:
			GetPlayerPos(playerid, X,Y,Z);//44358
Be a good man and help me
Reply
#2

for the errors at lines 12536 and 44358
look at the code above it i think you mis a ; there

on 12770 the update is wrong you have to put nothing or more in it :P
Reply
#3

probably you missed a ; on those 2 lines
and woah i mbeaten 53k lines? :/

edit: keessie already said it
Reply
#4

Your tips helped me alot! Thanks, guys! Now i only need the 12770 Fix
That's how looks whole public.

Код:
public OnPropUpdate(update)//error line :D
{
 	new idx;
	new File:file2;
	if(update == 1)
	{
	    idx = 0;
		while (idx < sizeof(HouseInfo))
		{
	  		new coordsstring[256];
			format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
			HouseInfo[idx][hEntrancex],
			HouseInfo[idx][hEntrancey],
			HouseInfo[idx][hEntrancez],
			HouseInfo[idx][hExitx],
			HouseInfo[idx][hExity],
			HouseInfo[idx][hExitz],
			HouseInfo[idx][hHealthx],
			HouseInfo[idx][hHealthy],
			HouseInfo[idx][hHealthz],
			HouseInfo[idx][hArmourx],
			HouseInfo[idx][hArmoury],
			HouseInfo[idx][hArmourz],
			HouseInfo[idx][hOwner],
			HouseInfo[idx][hDiscription],
			HouseInfo[idx][hValue],
			HouseInfo[idx][hHel],
			HouseInfo[idx][hArm],
			HouseInfo[idx][hInt],
			HouseInfo[idx][hLock],
			HouseInfo[idx][hOwned],
			HouseInfo[idx][hRooms],
			HouseInfo[idx][hRent],
			HouseInfo[idx][hRentabil],
			HouseInfo[idx][hTakings],
			HouseInfo[idx][hVec],
			HouseInfo[idx][hVcol1],
			HouseInfo[idx][hVcol2],
			HouseInfo[idx][hDate],
			HouseInfo[idx][hLevel],
			HouseInfo[idx][hWorld],
			HouseInfo[idx][hSetted],
			HouseInfo[idx][hDrugs],
			HouseInfo[idx][hMaterials],
			HouseInfo[idx][hWeapon1],
			HouseInfo[idx][hAmmo1],
			HouseInfo[idx][hWeapon2],
			HouseInfo[idx][hAmmo2],
			HouseInfo[idx][hWeapon3],
			HouseInfo[idx][hAmmo3],
			HouseInfo[idx][hWeapon4],
			HouseInfo[idx][hAmmo4]);
			HouseInfo[idx][hWorld] = idx;
			if(idx == 0)
			{
				file2 = fopen("MYRP/Properties/property.cfg", io_write);
			}
			else
			{
			    file2 = fopen("MYRP/Properties/property.cfg", io_append);
			}
			fwrite(file2, coordsstring);
			idx++;
			fclose(file2);
		}
	}
	return 1;
}
Reply
#5

pawn Код:
forward OnPropUpdate(update);
Reply
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
forward OnPropUpdate(update);
It gives me 41 warnings, but i think it's my fault So Big thanks to you guys for solving my problems
Код:
warning 202: number of arguments does not match definition
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)