SA-MP Forums Archive
Can't receive house info? - 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: Can't receive house info? (/showthread.php?tid=484406)



Can't receive house info? - Jason_Roul - 30.12.2013

pawn Код:
enum hhInfo
{
    hOwner[128], //HouseInfo[house][hOwner],HouseInfo[house][hPrice],HouseInfo[house][hLock],HouseInfo[house][hRentable]);
    hPrice,
    hLock,
    hRentable,
}
pawn Код:
if(house != 1000)
    {
        format(string, sizeof(string),"(Property): Owner:[%s] Value:[%d] Locked:[%d] Rentable:[%d]", HouseInfo[hhInfo][hOwner],HouseInfo[hhInfo][hPrice],HouseInfo[hhInfo][hLock],HouseInfo[house][hRentable]);
        SendClientMessage(playerid,statscolor2,string);
    }
So, basically, all that appears is a black textdraw and the info won't appear, the thing is, the enum was defined but I'm not sure if the text-draw thingy is working. Keep in mind before eating me alive that I'm editing the script for someone else, and it should be grabbing the info, but textdraw might not be working? I mean all that appears is a black box and I get these warnings which seem to be irrelevant with the damn info:

pawn Код:
C:\Users\Jim\Desktop\SA-MP\gamemodes\PR-RP.pwn(17627) : warning 203: symbol is never used: "CreateCurrentPageTextDraw"
C:\Users\Jim\Desktop\SA-MP\gamemodes\PR-RP.pwn(17627) : warning 203: symbol is never used: "CreateFurnitureSelectionMenu"
C:\Users\Jim\Desktop\SA-MP\gamemodes\PR-RP.pwn(17627) : warning 203: symbol is never used: "CreatePlayerBackgroundTextDraw"
C:\Users\Jim\Desktop\SA-MP\gamemodes\PR-RP.pwn(17627) : warning 203: symbol is never used: "CreatePlayerDialogButton"
C:\Users\Jim\Desktop\SA-MP\gamemodes\PR-RP.pwn(17627) : warning 203: symbol is never used: "CreatePlayerHeaderTextDraw"



Re: Can't receive house info? - Jason_Roul - 30.12.2013

I looked all over the script but nothing appears to be wrong, I'm so confused, it will appear as a black box and not the way it should.


Re: Can't receive house info? - Jason_Roul - 30.12.2013

Bump! :'/.


Re: Can't receive house info? - Jason_Roul - 30.12.2013

Question has remained unanswered..


Re: Can't receive house info? - Scott Zulkifli - 30.12.2013

symbol is never used

Try place //
//CreateCurrentPageTextDraw
...


Re: Can't receive house info? - Jason_Roul - 03.01.2014

Still not fixed..