GarHouse - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GarHouse (
/showthread.php?tid=335549)
GarHouse -
dannyk0ed - 18.04.2012
I found a GarHouse FS in my folder, so i compiled and got
pawn Код:
C:
\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(119) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : warning 215: expression has no effect
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 001: expected token: ";", but found "]"
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : fatal error 107: too many error messages on one line
pawn Код:
new Iterator:Houses<MAX_HOUSES>, Text3D:HouseLabel[MAX_HOUSES], Float:X, Float:Y, Float:Z, Float:Angle;//119
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
foreach(Houses, h)//447
{
if(GetPlayerVehicleID(playerid) == HCar[h])
{
switch(strcmp(hInfo[h][HouseOwner], pNick(playerid), CASE_SENSETIVE))
{
case 0: ShowInfoBox(playerid, I_HOUSECAR_OWNER, pNick(playerid), h);
case 1:
{
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, (X + 3), Y, Z);
ShowInfoBox(playerid, E_NOT_HOUSECAR_OWNER, h, hInfo[h][HouseOwner]);
}
}
break;
}
}
}
return 1;
}
#endif
I just wanted to change the MIN and max prices, but i got some errors
Re: GarHouse -
dannyk0ed - 18.04.2012
bump
Re: GarHouse -
ViniBorn - 18.04.2012
Example by ******
pawn Код:
new
Iterator:Some<10>;
Iter_Add(Some, 5);
Iter_Add(Some, 9);
foreach (new i : Some)
{
printf("%d", i);
}
I think you have to put :
pawn Код:
foreach(new h, Houses)//447
Re: GarHouse -
SuperViper - 19.04.2012
The newest version of foreach requires you to use
Re: GarHouse -
dannyk0ed - 19.04.2012
Thanks Super