Problem with Sscanf2 - 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 with Sscanf2 (
/showthread.php?tid=249722)
Problem with Sscanf2 -
[ISS]Daniele_Tom - 20.04.2011
PHP код:
CMD:SetArmour(playerid,params[])
{
new Pid, Float:Armour;
if(sscanf(params,"uf",Pid,Armour)) return SendClientMessage(playerid,0xFF000000,"[Use] /SetArmour [ID] [ARMOUR]");
SetPlayerArmour(Pid,Armour);
return 1;
}
Hi, i have a problem with Sscanf2.
This string is not correct
PHP код:
CMD:SetArmour(playerid,params[])
and give me this errors:
Код:
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 017: undefined symbol "params"
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : fatal error 107: too many error messages on one line
How can I resolv this errors?
Re: Problem with Sscanf2 -
Raimis_R - 20.04.2011
So this is zcmd problem not sscanf.