Errors at my scripting
#1

Hello.

I have 4 errors on my scripting and i'm gonna show it to you. Maybe you should know these errors. So, LET'S BEGIN!

The errors:

Код:
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(9911) : error 076: syntax error in the expression, or invalid function call
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(10016) : error 076: syntax error in the expression, or invalid function call
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(10017) : error 076: syntax error in the expression, or invalid function call
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(10030) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
The lines of these errors:

Код:
format(string, sizeof(string),"%s has used adminarea (non admin)", pName );
That was the first.

SECOND!

With two lines:

Код:
		if(ping == 0) format(string,sizeof(string),"{00C7FF}Administrator %s has disabled maximum ping", PlayerName2, ping);
		else format(string,sizeof(string),"{00C7FF}Administrator %s has set the maximum ping to %d", PlayerName2, ping);
And the LAST LINE!


Код:
SetPlayerVirtualWorld(player1,GetPlayerVirtualWorld);
You can help me fixing these errors easily
Reply
#2

GetPlayerVirtualWorld(playerid) and i dunno
Reply
#3

For the first one, i think the pName is a function, what you need to do is just add the id of the player where you want to get the name in the parameter.
This should be fixed your first error.
Код:
format(string, sizeof(string),"%s has used adminarea (non admin)", pName(playerid));
For the second and third, can you show us the line where you declare PlayerName2 and ping?

The last one, you missing a parameter on GetPlayerVirtualWorld function.
Reply
#4

Now, That i fixed them, I have these errors. With AddHouses ...


Код:
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(798) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(799) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(800) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(801) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(802) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(803) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(804) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(805) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(806) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(807) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(808) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(809) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(810) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(811) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(812) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(813) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(814) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(815) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(816) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(817) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(818) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(819) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(820) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(821) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(822) : error 017: undefined symbol "AddHouse"
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM.pwn(823) : error 017: undefined symbol "AddHouse"

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


26 Errors.
Reply
#5

Do you have AddHouse defined?
Can you give us those lines?
Reply
#6

Yes. Here:

Код:
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Costa, Sella, Interiora, virtualworld)
{
	new house[256];
	format(house, sizeof(house), "NFTDM/Houses/houseid%d",houseid);
	if(!dini_Exists(house))
	{
		dini_Create(house);
		format(hInfo[houseid][Name], 24, DEFAULT_OWNER);
		dini_Set(house, "Name", DEFAULT_OWNER);
		format(hInfo[houseid][Renter], 24, "ForRent");
		dini_Set(house, "Renter", "ForRent");
		hInfo[houseid][Rentable] = 0;
		dini_IntSet(house, "Rentable", 0);
		hInfo[houseid][Rentcost] = 0;
		dini_IntSet(house, "Rentcost", 0);
		hInfo[houseid][Cost] = Costa;
		dini_IntSet(house, "Cost", Costa);
		hInfo[houseid][Sell] = Sella;
		dini_IntSet(house, "Sell", Sella);
		hInfo[houseid][Interior] = Interiora;
		dini_IntSet(house, "Interior", Interiora);
		dini_IntSet(house, "Virtualworld", virtualworld);
		hInfo[houseid][Virtualworld] = virtualworld;
		hInfo[houseid][Locked] = 1;
		dini_IntSet(house, "Locked", 1);
		hInfo[houseid][InteriorX] = interiorX;
		hInfo[houseid][InteriorY] = interiorY;
		hInfo[houseid][InteriorZ] = interiorZ;
		dini_FloatSet(house, "X", interiorX);
		dini_FloatSet(house, "Y", interiorY);
		dini_FloatSet(house, "Z", interiorZ);
		dini_IntSet(house, "RentPay", 0);
		dini_IntSet(house, "RentGet", 0);
		print("-");
		print("--------------House Created--------------");
		printf("- Houseid: %d", houseid);
		printf("- Buy Cost: %d", Costa);
		printf("- Sell Cost: %d", Sella);
		printf("- Interior: %d", Interiora);
		printf("- VirtualWorld: %d", virtualworld);
		print("-----------------------------------------");
		print("-");
	}
	else
	{
	    format(hInfo[houseid][Name], 24, dini_Get(house, "Name"));
	    format(hInfo[houseid][Renter], 24, dini_Get(house, "Renter"));
		hInfo[houseid][Rentable] = dini_Int(house, "Rentable");
		hInfo[houseid][Rentcost] = dini_Int(house, "Rentcost");
	    hInfo[houseid][Cost] = dini_Int(house, "Cost");
	    hInfo[houseid][Sell] = dini_Int(house, "Sell");
	    hInfo[houseid][Interior] = dini_Int(house, "Interior");
	    hInfo[houseid][Locked] = dini_Int(house, "Locked");
	    hInfo[houseid][InteriorX] = dini_Float(house, "X");
	    hInfo[houseid][InteriorY] = dini_Float(house, "Y");
		hInfo[houseid][InteriorZ] = dini_Float(house, "Z");
		hInfo[houseid][Virtualworld] = dini_Int(house, "Virtualworld");
	}
    hInfo[houseid][iconx]=iconX;
	hInfo[houseid][icony]=iconY;
	hInfo[houseid][iconz]=iconZ;
	format(house, sizeof(house), "NFTDM/Houses/houseid%d",houseid);
	hTextInfo[houseid] = Text3D:INVALID_3DTEXT_ID;
	new hnowner[25];
	format(hnowner,128,"%s",hInfo[houseid][Name]);
	if(strcmp(hInfo[houseid][Name],DEFAULT_OWNER,true)==0)
	{
    	format(hnowner,128,"Not Owned");
		hTextInfo[houseid] = CreateDynamic3DTextLabel(hnowner,0x00FF00FF,iconX,iconY,iconZ+0.75,40);
		HousePickup[houseid] = CreateDynamicPickup(1273, 23, iconX, iconY, iconZ);//not bought
		housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ,31,c_y);
	}
	else
	{
 		hTextInfo[houseid] = CreateDynamic3DTextLabel(hnowner,0xFF0000FF,iconX,iconY,iconZ+0.75,40);
		HousePickup[houseid] = CreateDynamicPickup(1272,23, iconX, iconY, iconZ);//bought
		housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ,32,c_y);
	}
}
Reply
#7

It's already compiled and it's okay. What's the problem in this now ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)