error 035: argument type mismatch (argument 1) -
vothanhdat - 06.11.2014
what ?
PHP код:
./Haminda/Haminda.pwn(99061) : error 035: argument type mismatch (argument 1)
./Haminda/Haminda.pwn(99065) : warning 213: tag mismatch
./Haminda/Haminda.pwn(99065) : warning 202: number of arguments does not match definition
./Haminda/Haminda.pwn(99065) : warning 202: number of arguments does not match definition
./Haminda/Haminda.pwn(99059) : warning 204: symbol is assigned a value that is never used: "playerName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
new playerName = PlayerInfo[playerid][pTenthat];
// playerName = p_name(playerid);
NameTag[playerid] = Create3DTextLabel(playerName, 0xFFFFFFFF, 0, 0,0, NAME_DRAWDISTANCE, 0, 1);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
new Float:health, Float:armor;
NameTag[playerid] = Create3DTextLabel("Mau[%d].Giap[%d]",0x33AA33AA,0,0,0, health, armor, 50,-1,1);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0,0,0);
Help
Re: error 035: argument type mismatch (argument 1) -
Justinclaveria123 - 06.11.2014
Which line 99061?
Re: error 035: argument type mismatch (argument 1) -
PinkFloydLover - 06.11.2014
"number of arguments does not match definition "
That means one of the functions you're using has the wrong amount of parameters on it, search up each function name on the wiki and see which one it is.
Re: error 035: argument type mismatch (argument 1) -
Lynn - 06.11.2014
You're not using the correct input method.
The correct Syntax is;
Create3DTextLabel("string", COLOR, FloatX, FloatY, FloatZ, DrawDistance, VirtualWorld);
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Re: error 035: argument type mismatch (argument 1) -
vothanhdat - 06.11.2014
Quote:
Originally Posted by Justinclaveria123
Which line 99061?
|
NameTag[playerid] = Create3DTextLabel(playerName, 0xFFFFFFFF, 0, 0,0, NAME_DRAWDISTANCE, 0, 1);
Re: error 035: argument type mismatch (argument 1) -
Lynn - 06.11.2014
playername should be in the form of a string, so it'd be:
pawn Код:
new playername[32] = blahblahblah; // 32 is the length of the string, 128 is the max. Names are never over 32.
Re: error 035: argument type mismatch (argument 1) -
vothanhdat - 06.11.2014
Quote:
Originally Posted by Justinclaveria123
Which line 99061?
|
Quote:
Originally Posted by Lynn
playername should be in the form of a string, so it'd be:
pawn Код:
new playername[32] = blahblahblah; // 32 is the length of the string, 128 is the max. Names are never over 32.
|
./Haminda/Haminda.pwn(99059) : error 008: must be a constant expression; assumed zero
pawn Код:
new playerName[32] = PlayerInfo[playerid][pTenthat];
Re: error 035: argument type mismatch (argument 1) -
Justinclaveria123 - 06.11.2014
Quote:
NameTag[playerid] = Create3DTextLabel(playerName, COLOR_HERE, 0, 0,0, NAME_DRAWDISTANCE, 0, 1);
|
maybe define this to what color is this 0xFFFFFFFF
then put on the COLOR_HERE , example if that color is blue so put on the top of the script . #define COLOR_BLUE 0xFFFFFFFF
Re: error 035: argument type mismatch (argument 1) -
vothanhdat - 06.11.2014
Quote:
Originally Posted by Justinclaveria123
maybe define this to what color is this 0xFFFFFFFF
then put on the COLOR_HERE , example if that color is blue so put on the top of the script . #define COLOR_BLUE 0xFFFFFFFF
|
./Haminda/Haminda.pwn(99059) : error 008: must be a constant expression; assumed zero
./Haminda/Haminda.pwn(99067) : warning 202: number of arguments does not match definition
./Haminda/Haminda.pwn(99067) : warning 202: number of arguments does not match definition
./Haminda/Haminda.pwn(99066) : warning 203: symbol is never used: "armor"
./Haminda/Haminda.pwn(99066) : warning 203: symbol is never used: "health"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: error 035: argument type mismatch (argument 1) -
PinkFloydLover - 06.11.2014
if all your trying to do is display the players name, then just get the players name using 'GetPlayerName'
pawn Код:
new playername[32];
GetPlayerName(playerid, playername, 32);