Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (
/showthread.php?tid=183465)
Problem -
dawidek11 - 15.10.2010
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 ?
Re: Problem -
Mauzen - 15.10.2010
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)
Re: Problem -
dawidek11 - 15.10.2010
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