I need help with house systhem! -
Darkly_Face - 12.08.2010
Hey! i have problems with house systhem! - By Antironix
Код:
stock GetHouseStats(playerid, hid)
{
new str2[256];
format(str2, sizeof(str2), "Owned by: %s", hInfo[hid][Name]);
GameTextForPlayer(playerid, c_y, str2, 3000, 4); // Error Line because i want to change SendClientMessage to Game Text for player!
if(strcmp(hInfo[hid][Renter],"ForRent",true))
{
format(str2, sizeof(str2), "Rented by: %s", hInfo[hid][Renter]);
SendClientMessage(playerid, c_y, str2);
}
format(str2,sizeof(str2),"Cost: %i",hInfo[hid][Cost]);
SendClientMessage(playerid, c_y, str2);
}
and i have these erors:
Код:
error 035: argument type mismatch (argument 2)
Re: I need help with house systhem! -
Agent Smith - 12.08.2010
What exact line are you getting those errors?
Re: I need help with house systhem! -
Darkly_Face - 12.08.2010
Why u didnt read all of it!

?
i have added :
Код:
GameTextForPlayer(playerid, c_y, str2, 3000, 4); // Error Line because i want to change SendClientMessage to Game Text for player!
Re: I need help with house systhem! -
Agent Smith - 12.08.2010
If you read:
https://sampwiki.blast.hk/wiki/GameTextForPlayer - You will see that you can only use:
pawn Код:
GameTextForPlayer(playerid, string, 3000, 4);
Remove the c_y
Re: I need help with house systhem! -
Darkly_Face - 12.08.2010
but there will be some params lost?
Re: I need help with house systhem! -
Agent Smith - 12.08.2010
What is the c_y meant to do? Colour?
Re: I need help with house systhem! -
Darkly_Face - 12.08.2010
idk.... it was automaticly... im just trying to script it...
Re: I need help with house systhem! -
Agent Smith - 12.08.2010
Well when you are using GameTextForPlayer you only need the following:
pawn Код:
(playerid, const string[], time, style)
This is how it should look:
pawn Код:
GameTextForPlayer(playerid, str2, 3000, 4);
if you want to change the colour then:
pawn Код:
format(str2, sizeof(str2), "~B~Owned by: %s", hInfo[hid][Name]);
"~B~" will show the text as blue
Re: I need help with house systhem! -
Darkly_Face - 12.08.2010
im not a scripting n00b i knew that long time ago!!!!
but i dont know almost nothing about this script!
Re: I need help with house systhem! -
Agent Smith - 12.08.2010
Right, sorry I was just making sure you would understand