Undefined Symbol isnull & params
#1

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
Reply
#2

bump!
Reply
#3

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).
Reply
#4

This is the isnull params define
pawn Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
Reply
#5

if i am using dcmd what should i do then?
Reply
#6

Make sure the define is above the command.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)