Create3DTextLabel + REP !
#1

How to create this in Create3DTextLabel ?
And where to put...


Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	new propid = -1;
	for(new id; id<MAX_PROPERTIES; id++)
	{
		if(PropInfo[id][PickupNr] == pickupid)
		{
			propid = id;
            break;
		}
	}
	if(propid != -1)
	{
	    new str[128];
    	format(str, 128, "~y~\"%s\"~n~~r~Value: ~y~$%d~n~~r~Earning: ~y~$%d~n~~r~Owner: ~y~%s", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
		GameTextForPlayer(playerid, str, 6000, 3);
	}
	return 1;
}
Reply
#2

What do you want to create in 3D Text Label exactly?
Reply
#3

for PROPS...SANDRA PROPERTY SYSTEM..
Reply
#4

there ya go
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new propid = -1;
    for(new id; id<MAX_PROPERTIES; id++)
    {
        if(PropInfo[id][PickupNr] == pickupid)
        {
            propid = id;
            break;
        }
    }
    if(propid != -1)
    {
                new str[128];
                format(str, 128, "~y~\"%s\"~n~~r~Value: ~y~$%d~n~~r~Earning: ~y~$%d~n~~r~Owner: ~y~%s", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
                new Float:posX,Float:posY,Float:posZ;GetPlayerPos(playerid,posX,posY,posZ);
                Create3DTextLabel(str, -1, posX,posY,posZ, 20.0, -1,-1);//will create the 3D text in the players position!
    }
    return 1;
}
Reply
#5

Code:
C:\Users\pc\Desktop\GameModovi\Beyond GAME MOD\filterscripts\firmu.pwn(131) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\pc\Desktop\GameModovi\Beyond GAME MOD\filterscripts\firmu.pwn(123) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\pc\Desktop\GameModovi\Beyond GAME MOD\filterscripts\firmu.pwn(322) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
1 error in this line
new FloatosX,FloatosY,FloatosZ;GetPlayerName(pla yerid,posX,posY,posZ);
Reply
#6

Can't you even spot the error REALLY NOW,don't you even read the codes you are given?CAN'T you spot
pawn Code:
GetPlayerName
instead of
pawn Code:
GetPlayerPos
?
Reply
#7

Isn't Working :S
http://zaslike.com/viewer.php?file=o...mtgydbq6zf.png
http://zaslike.com/viewer.php?file=1...wuyf7bwjsn.png
Reply
#8

Quote:
Originally Posted by Cjgogo
View Post
Can't you even spot the error REALLY NOW,don't you even read the codes you are given?CAN'T you spot
pawn Code:
GetPlayerName
instead of
pawn Code:
GetPlayerPos
?
allright come down i was on my phone it auto corrected it :X
Reply
#9

whaat ? didn't catch you
Reply
#10

BUMP, Y NEED IT FAST :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)