SA-MP Forums Archive
number of arguments.. - 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.. (/showthread.php?tid=655300)



number of arguments.. - div - 18.06.2018

Код:
	new StoreName = cache_get_field_content(0, "storename");
	format(rquery, sizeof(rquery), "[ROBBERY] %s(%d) has robbed %d from %s", pName, playerid, 
        GetPVarInt(playerid, "robbedMoney"), StoreName);
	SendClientMessageToAll(-1, rquery);

Код:
(LINE: 332): warning 202: number of arguments does not match definition



Re: number of arguments.. - FailerZ - 18.06.2018

This is the correct way of retrieving string
PHP код:
    new StoreName[28];
    
cache_get_field_content(0"storename"StoreName);
    
format(rquerysizeof(rquery), "[ROBBERY] %s(%d) has robbed %d from %s"pNameplayerid
    
GetPVarInt(playerid"robbedMoney"), StoreName);
    
SendClientMessageToAll(-1rquery); 



Re: number of arguments.. - div - 18.06.2018

thanks bruh.. +rep