SA-MP Forums Archive
[Ajuda] sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] sscanf (/showthread.php?tid=385738)



sscanf - Nice-.- - 17.10.2012

PHP код:
(2058) : error 017undefined symbol "isnull"
(2072) : error 017undefined symbol "isnull"
(2089) : error 017undefined symbol "isnull"
(2269) : error 017undefined symbol "isnull"
(2321) : error 017undefined symbol "isnull" 
linhas \/ as linhas sгo essas '-' seguindo
PHP код:
if(isnull(params)) return SendClientMessage(playerid,ERRO,"[USO]: /depositar [Quantia]");
if(
isnull(params)) return SendClientMessage(playerid,ERRO,"[USO]: /sacar [Quantia]");
if(
isnull(params)) return SendClientMessage(playerid,C_MSG,"[USO]: /abastecer [Litros]");
if(
isnull(params)) return SendClientMessage(playerid,ERRO,"[USO]: /desalgemar [ID]");
if(
isnull(params)) return SendClientMessage(playerid,ERRO,"[USO]: /abordar [ID]"); 



Re: sscanf - Q.I - 17.10.2012

isso nao e coisa do zcmd nao ?


Re: sscanf - Ely Manning - 17.10.2012

PHP код:
#if !defined isnull
    #define isnull(%1) \
                
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif 
ou entгo se preferir em stock:

PHP код:
stock sscanf(string[], format[], {Float,_}:...)
{
#if defined isnull
if (isnull(string))
#else
if (string[0] == || (string[0] == && string[1] == 0))
#endif
{
return 
format[0];




Re: sscanf - Nice-.- - 17.10.2012

Resolvido Jб !