help me level
#1

please help me on my fs http://pastebin.com/zZNjqrZK

i want make a text draw look like Level:[player level here] and kills:[player kills]
and" kill :23/25" -do the kill change this name "XP" not "kill"
and show the player level and XP on craeteplayer3d

please help me

sorry for bad english
Reply
#2

Make it like this

Код:
format(string, sizeof(string), " %s ", EXP);
Create3DTextLabel(string,0x000000FF,X,Y,Z,50.0,0,0);
Attach3DTextLabelToPlayer(EXP, playerid, 0.0, 0.0, 0.4);
And so on.
Reply
#3

but where i put it ?
Reply
#4

Код:
public OnFilterScriptInit()
{
        format(string, sizeof(string), " %s ", EXP);
        Create3DTextLabel(string,0x000000FF,X,Y,Z,50.0,0,0);
        Attach3DTextLabelToPlayer(EXP, playerid, 0.0, 0.0, 0.4);
	return 1;
}
Or onplayerconnect
Reply
#5

Quote:
Originally Posted by Windows7
Посмотреть сообщение
Код:
public OnFilterScriptInit()
{
        format(string, sizeof(string), " %s ", EXP);
        Create3DTextLabel(string,0x000000FF,X,Y,Z,50.0,0,0);
        Attach3DTextLabelToPlayer(EXP, playerid, 0.0, 0.0, 0.4);
	return 1;
}
Or onplayerconnect
Yes it should be on onplayerconnect, not on OnFilterScriptInit
Reply
#6

guys what abaut the text draw for showing the player level on the screen and the player kills
and how many kills he need to kill !?
Reply
#7

i ptted it in onplayerconnect and i have errors
C:\Users\nir\Desktop\0.3c\gamemodes\REA.pwn(66 : error 017: undefined symbol "string"
C:\Users\nir\Desktop\0.3c\gamemodes\REA.pwn(66 : error 017: undefined symbol "string"
C:\Users\nir\Desktop\0.3c\gamemodes\REA.pwn(66 : error 029: invalid expression, assumed zero
Reply
#8

Yep it Gives Warning i also Don't Know Why..
Reply
#9

some one can to help ?
Reply
#10

Add:

pawn Код:
new string[128];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)