3D Label to player
#1

So i made my code...

pawn Код:
if (strcmp("/soldier", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, soldiercolor, "You are now a soldier.");
    pTeam[playerid] = team_soldier;
    SetPlayerSkin(playerid, 287);
    GivePlayerWeapon(playerid, 17, 10);
    GivePlayerWeapon(playerid, 27, 50);
    GivePlayerWeapon(playerid, 31, 200);
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    new string[128];
    format(string, sizeof(string), " %s : Soldier", GetPlayerName);
    playertextid = CreatePlayer3DTextLabel(playerid,string,X,Y,Z,40.0);
    return 1;
}
I tried to format it to grab the players name etc.. not sure if i did it right, But i get a few errors and may need some help adjusting my script.

Код:
C:\Users\Scripting.Ash-PC\Desktop\Tribal Gaming\Team Deathmatch\gamemodes\test.pwn(141) : error 076: syntax error in the expression, or invalid function call
C:\Users\Scripting.Ash-PC\Desktop\Tribal Gaming\Team Deathmatch\gamemodes\test.pwn(142) : warning 213: tag mismatch
C:\Users\Scripting.Ash-PC\Desktop\Tribal Gaming\Team Deathmatch\gamemodes\test.pwn(142) : warning 202: number of arguments does not match definition
C:\Users\Scripting.Ash-PC\Desktop\Tribal Gaming\Team Deathmatch\gamemodes\test.pwn(142) : warning 204: symbol is assigned a value that is never used: "playertextid"
C:\Users\Scripting.Ash-PC\Desktop\Tribal Gaming\Team Deathmatch\gamemodes\test.pwn(147) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
3D Label to player - by Pawnstar - 26.11.2012, 21:14
Re: 3D Label to player - by Bicentric - 26.11.2012, 21:22
Re: 3D Label to player - by RenSoprano - 26.11.2012, 21:24
Re: 3D Label to player - by Bicentric - 26.11.2012, 21:26
Re: 3D Label to player - by Scenario - 26.11.2012, 21:27
Re: 3D Label to player - by RenSoprano - 26.11.2012, 21:28
Re: 3D Label to player - by Bicentric - 26.11.2012, 21:32
Re: 3D Label to player - by Pawnstar - 27.11.2012, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)