SA-MP Forums Archive
number of arguments does not match definition - 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)
+--- Thread: number of arguments does not match definition (/showthread.php?tid=639780)



number of arguments does not match definition - RedRex - 23.08.2017

i got an error when i add HouseData[Address]..I've add this for house address but when i compli i got this warring how to fix it?!?


PHP код:
    new label[256];
    if(!
strcmp(HouseData[id][Owner], "-")) {
        
format(labelsizeof(label), "{FF0000}[{E5E5E5}House For Sale{FF0000}] (ID: %d)\n{FFFFFF}%s\n{FF0000}Price: {2ECC71}$%s\n{FF0000}Address: {FFFFFF}%s"idHouseInteriorsHouseData[id][Interior] ][IntName], convertNumber(HouseData[id][Price] ,HouseData[Address])); 



Re: number of arguments does not match definition - Paulice - 23.08.2017

Because you're passing HouseData[Address]'s value to function convertNumber.


Re: number of arguments does not match definition - RedRex - 23.08.2017

Oh Thank you Problem sloved.