Variable++
#1

Help?

pawn Код:
CMD:droppod(playerid, params[])
{
    if(PlayerInfo[playerid][pPods] < 1) return ErrorMSG(playerid, "You don't have any pods to use!");
    new podname[64];
    if(sscanf(params,"s",podname)) return SendClientMessage(playerid, -1, "Usage: /droppod [name] (Example: Pod 1a");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    podname = CreateDynamicObject(1243, x, y, z, 0.0, 0.0, 0.0, -1, -1, -1, 300);
    Create3DTextLabel("Pod", COLOR_GREEN, x, y, z, 40, 0, 0);
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    podname = Create3DTextLabel("Crab", COLOR_GREEN, x, y, z, 40.0, 0, 0);
    Update3DTextLabelText(podname, COLOR_GREEN, "%s\nOwner: %s\n/retrieve to get it back", podname, pName);
    return 1;
}
Reply
#2

...

What's your error?

You can't just give us the damn code and expect us to fix it.
Reply
#3

How can I keep creating the 3D text and object while not having to create:
new obj1;
new obj2;
etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)