Errors with another house script i tried to make
#2

Looks like its from a tutorial, if so start again and follow it more carefully, And if its not from a tutorial, find one and use it. I'm not even going to get started on whats wrong with that code. (nearly everything you posted)

Try this one https://sampforum.blast.hk/showthread.php?tid=118379

EDIT: I just realised that thread has been edited and thats where you get the errors, you dont put this in your code:
pawn Код:
HouseName[] - The unique house name that you have chosen for the house (Ex: "Big Mansion5")
CostP - The Cost price of the house (Ex: 500000)
Float:EnterX - The X entry point of the house, it will also be where the outside checkpoint will be (Ex: 1264.53433)
Float:EnterY - The Y entry point of the house, it will also be where the outside checkpoint will be (Ex: 2625.6436)
Float:EnterZ - The Z entry point of the house, it will also be where the outside checkpoint will be (Ex: 200.532)
Float:TeleX - The X teleport that teleports the player into the interior (Ex: 432.4234)
Float:TeleY - The Y teleport that teleports the player into the interior (Ex: 4216.4152)
Float:TeleZ - The Z teleport that teleports the player into the interior (Ex: 10.53672)
SellP - It's the selling price that the owner can sell the house for (Ex: 200000)
Interiorx - The interior ID of the interior that we will teleport to.

//or this

SELECT [VARIABLE] FROM [TABLENAME] WHERE [ANOTHER VARIABLE] = [A VALUE]
VARIABLE = houseowner
TABLENAME = HOUSEINFO
ANOTHER VARIABLE = housename
A VALUE = our house name.

INSERT INTO [TABLENAME] ([FIELD1], [FIELD2]) VALUES ([VALUE1], [VALUE2])
TABLENAME - HOUSEINFO
FIELD1 - housename
FIELD2 - houseowner
VALUE1 - Our housename value
VALUE2 - Our houseowner value

DELETE FROM [TABLENAME] WHERE [FIELD] = [VALUE]
TABLENAME - HOUSEINFO
FIELD - housename
VALUE - the housename
They are just explaining what things do, not what you need in your code. Read the tut more careful.
Reply


Messages In This Thread
Errors with another house script i tried to make - by Zonoya - 11.09.2011, 09:59
Re: Errors with another house script i tried to make - by iggy1 - 11.09.2011, 10:04
Re: Errors with another house script i tried to make - by Zonoya - 11.09.2011, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)