Errors
#1

Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(3437) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerMonez"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(3437) : warning 215: expression has no effect
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(3437) : error 001: expected token: ";", but found "]"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(3437) : error 029: invalid expression, assumed zero
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(3437) : fatal error 107: too many error messages on one line

3437 Lines :
Код:
						if(GetPlayerMoney[i] < cost) cost = GetPlayerMoney[i];
+REP if you can helping me..!
Reply
#2

Show your GetPlayerMonez thingy, you're creating two sub scripts which does the same work.
Reply
#3

Код:
if(GetPlayerMoney(i) < cost) 
{
cost = GetPlayerMoney(i);
}
Reply
#4

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Код:
if(GetPlayerMoney(i) < cost) 
{
cost = GetPlayerMoney(i);
}
It makes All Script in Gamemodeinit isn't working :

Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4551) : error 017: undefined symbol "ModVehicle"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4579) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4580) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4581) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4582) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4583) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4584) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4585) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4586) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4587) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(458 : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4589) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4590) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4591) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4592) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4593) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4594) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4595) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4596) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4597) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(459 : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4599) : error 017: undefined symbol "AddHouse"
*SorryForMyBadEnglish
Reply
#5

That's the right code ,I guess.
Source: GetPlayerMoney
Reply
#6

Looks like you might be missing some opening or closing brace/bracket ({ or }) somewhere.
Reply
#7

Quote:
Originally Posted by iZN
Посмотреть сообщение
Looks like you might be missing some opening or closing brace/bracket ({ or }) somewhere.
I think it can't be a missing bracket because if it was, it would give more undefined symbols but it only gives "AddHouse" thing.

Try getting the "AddHouse" function and you'll get rid of those errors.
Reply
#8

You mean this ?

Quote:

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), "SATDM/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), "SATDM/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
#9

Now it Fixed but i have 26 Errors here


Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(454 : error 017: undefined symbol "ModVehicle"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4576) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4577) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(457 : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4579) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4580) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4581) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4582) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4583) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4584) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4585) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4586) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4587) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(458 : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4589) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4590) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4591) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4592) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4593) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4594) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4595) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4596) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4597) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(459 : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4599) : error 017: undefined symbol "AddHouse"
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(4600) : error 017: undefined symbol "AddHouse"

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


26 Errors.

Before I added Vehicle System the House system Works Corectly ...
but when i added vehicle system i got 26 Errors here...

*SorryForMyBadEnglish
Reply
#10

Looks like you've missed a "}" somewhere buddy, review it again or try to undo recent changes.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)