error 035: argument type mismatch (argument 1)
#1

what ?
PHP код:
./Haminda/Haminda.pwn(99061) : error 035argument type mismatch (argument 1)
./
Haminda/Haminda.pwn(99065) : warning 213tag mismatch
./Haminda/Haminda.pwn(99065) : warning 202number of arguments does not match definition
./Haminda/Haminda.pwn(99065) : warning 202number of arguments does not match definition
./Haminda/Haminda.pwn(99059) : warning 204symbol is assigned a value that is never used"playerName"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

PHP код:
    new playerName PlayerInfo[playerid][pTenthat];
//    playerName = p_name(playerid);
    
NameTag[playerid] = Create3DTextLabel(playerName0xFFFFFFFF00,0NAME_DRAWDISTANCE01);
    
Attach3DTextLabelToPlayer(NameTag[playerid], playerid0.00.00.2);
    new 
Float:healthFloat:armor;
    
NameTag[playerid] = Create3DTextLabel("Mau[%d].Giap[%d]",0x33AA33AA,0,0,0healtharmor50,-1,1);
    
Attach3DTextLabelToPlayer(NameTag[playerid], playerid0,0,0); 
Help
Reply
#2

Which line 99061?
Reply
#3

"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.
Reply
#4

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
Reply
#5

Quote:
Originally Posted by Justinclaveria123
Посмотреть сообщение
Which line 99061?
NameTag[playerid] = Create3DTextLabel(playerName, 0xFFFFFFFF, 0, 0,0, NAME_DRAWDISTANCE, 0, 1);
Reply
#6

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.
Reply
#7

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];
Reply
#8

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
Reply
#9

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.
Reply
#10

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)