Problem
#1

Hi, I've got problem with this thingy


new abc[255];

format(abc, sizeof(abc), "%s", dini_Get(udb_encode(playerid), "something")); /////// this is causing the problem



BBsomething[playerid] = Create3DTextLabel("BLAH", COLOR_BB, 0.0, 0.0, 0.0, 30.0, 0, 0);

if(abc> 0) // what about this... can't be like thiiis
{
Attach3DTextLabelToPlayer(BBsomething[playerid], playerid, 0.0, 0.0, 1.0);
}


And I get this: H:\whatever\new\map.pwn(11434) : error 035: argument type mismatch (argument 1)

Any help ?
Reply
#2

pawn Код:
if(abc> 0)
//change this to
if(strlen(abc) > 0)
Hmm, but im not sure whats wrong with the first problem atm. Could be a ) or so you forgot somewhere, or a problem between the new abc and the format (if there is any code between it)
Reply
#3

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
pawn Код:
if(abc> 0)
//change this to
if(strlen(abc) > 0)
Hmm, but im not sure whats wrong with the first problem atm. Could be a ) or so you forgot somewhere, or a problem between the new abc and the format (if there is any code between it)
meeh, doesn't work either
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)