2 Simple Questions [HELP] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Simple Questions [HELP] (
/showthread.php?tid=118030)
2 Simple Questions [HELP] -
*BueNoOo* - 02.01.2010
Hey,
I have a problem and a question here.
>1< When I try to compile my script it says "Cannot read from file <inc name>" and YES I DO HAVE THAT INCLUDE IN MY INCLUDES FOLDER !!
>2< I would like to make a textdraw that shows player's information, his name Deaths and all..How do I make it ? (using GetPlayerName etc)
Thanks for help guys !
Re: 2 Simple Questions [HELP] -
Hiitch - 02.01.2010
Which includes folder did you put it in?
The Server/include?
or pawno/include.
If it is in pawno/include and pawn compiler cant detect it, then it may not be the right version of the .inc.
Re: 2 Simple Questions [HELP] -
John Rockie - 02.01.2010
here Is the Deaths And Stats
pawn Код:
//At the top
new Text:LoggedInAs[MAX_PLAYERS];
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
//at OnPlayerConnect
LoggedInAs[playerid] = TextDrawCreate(497.000000,111.000000, " ");
//+ some other crap for the textdraw. (Proportional etc.)
CheckLoggedInAs(playerid);
//at OnPlayerDisconnect
TextDrawDestroy(LoggedInAs[playerid]);
//at OnPlayerSpawn
TextDrawShowForPlayer(playerid,LoggedInAs[playerid]);
//Then here at OnPlayerDeath
kill[killerid]++;
Death[playerid]++;
CheckLoggedInAs(playerid);
//And...
Re: [HELP] Need help - kill/death textdraw
« Reply #5 on: January 02, 2010, 01:21:22 AM »
Reply with quoteQuote
Code:
//At the top
forward CheckLoggedInAs(playerid);
new Text:LoggedInAs[MAX_PLAYERS];
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
//at OnPlayerConnect
LoggedInAs[playerid] = TextDrawCreate(497.000000,111.000000, " ");
//+ some other crap for the textdraw. (Proportional etc.)
CheckLoggedInAs();
//at OnPlayerDisconnect
TextDrawDestroy(LoggedInAs[playerid]);
//at OnPlayerSpawn
TextDrawShowForPlayer(playerid,LoggedInAs[playerid]);
//Then here at OnPlayerDeath
kill[killerid]++;
Death[playerid]++;
CheckLoggedInAs();
//And as a public..
public CheckLoggedInAs(playerid)
{
new string[128];
format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d" , kill[playerid], Death[playerid]);
TextDrawSetString(Text:LoggedInAs[playerid], string);
return 1;
}
{
Re: 2 Simple Questions [HELP] -
ClanDBZVegeta - 02.01.2010
IMA USE DAT NAOW ^-^
Re: 2 Simple Questions [HELP] -
x-cutter - 02.01.2010
Now for the include problem go in the folder where you have the 'pawno' thing and the folder 'includes', open pawno and manually open your script from pawno. It should work then.
Re: 2 Simple Questions [HELP] -
*BueNoOo* - 03.01.2010
Ok it worked but i don't understand that thing with textdraw
would you explain it further ? I also want to show player's name there etc.
thank you for that example u gave to me but unfortunetaly i don't understand it at all, i need some easier example :P
EDIT : maybe someone can give me a link to a tutorial or if there's no anythin alike to that, would u please make one ?
Re: 2 Simple Questions [HELP] -
*BueNoOo* - 03.01.2010
Ok I think I get it...but how about a textdraw showing player's name/score/ping ??
You gave me the idea for Kills and Deaths.