Undefined Symbol isnull & params - 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: Undefined Symbol isnull & params (
/showthread.php?tid=366996)
Undefined Symbol isnull & params -
ZBits - 08.08.2012
as the Topic says i am getting these errors
Код:
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(2912) : error 017: undefined symbol "isnull"
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(2913) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
the lines are
pawn Код:
if(isnull(params))return SendClientMessage(playerid, COLOR_SININE, "USAGE: /startrace [racename]");
LoadRace(playerid, params);
Need help
Re: Undefined Symbol isnull & params -
ZBits - 08.08.2012
bump!
Re: Undefined Symbol isnull & params -
AndreT - 08.08.2012
Quote:
Originally Posted by [EuG]ZeRoGoD
Код:
new params
new isnull
|
Actually, that's just pure bullshit.
If you have NO IDEA what you're doing, do not post in the help topics. Jesus.
To the thread author: something makes me assume you want to create commands like this:
pawn Код:
COMMAND:startrace(playerid, params[])
{
if(isnull(params))
{
// SendClientMessage
return true;
}
// Etc
return true;
}
For this purpose, you will need
zcmd and the isnull define (which is included in zcmd).
Re: Undefined Symbol isnull & params - Jarnu - 08.08.2012
This is the isnull params define
pawn Код:
#if !defined isnull
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
Re: Undefined Symbol isnull & params -
ZBits - 08.08.2012
if i am using dcmd what should i do then?
Re: Undefined Symbol isnull & params -
SuperViper - 08.08.2012
Make sure the define is above the command.
Re: Undefined Symbol isnull & params -
ZBits - 08.08.2012
after i put the define get these error
Код:
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(3329) : error 017: undefined symbol "params"
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(3329) : error 029: invalid expression, assumed zero
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(3329) : error 017: undefined symbol "params"
C:\Users\Sony\Desktop\USA Gang Wars TDM\gamemodes\Usagangwarsv1.3.pwn(3329) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.