2 Simple Questions [HELP]
#1

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 !
Reply
#2

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.
Reply
#3

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;
}
{
Reply
#4

IMA USE DAT NAOW ^-^
Reply
#5

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.
Reply
#6

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 ?
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)