#1

Hey,i was creating zcmd commands but when i zcmd to open gates i have this error

Invalid function or declaration

my script

if(playerDB[playerid][specialybe]==40 || playerDB[playerid][admin])
{
COMMAND:aaa( playerid, params [ ] )
MoveObject(armija,-1627.343750, 358.795929, -1.898168, 3);
return 1;
}

Error at if(playerDB[playerid][specialybe]==40 || playerDB[playerid][admin])
and return 1;

Sorry my bad EN
Reply
#2

What error?
Reply
#3

Quote:

C:\Users\Agnius\Desktop\RPG v1\RPG v1\gamemodes\band7.pwn(134 : error 010: invalid function or declaration
C:\Users\Agnius\Desktop\RPG v1\RPG v1\gamemodes\band7.pwn(1352) : error 010: invalid function or declaration

SCRIPT

if(playerDB[playerid][specialybe]==40 || playerDB[playerid][admin])
{
COMMAND:aaa( playerid, params [ ] )
MoveObject(armija,-1627.343750, 358.795929, -1.898168, 3);
return 1;
}
Line 1348 if(playerDB[playerid][specialybe]==40 || playerDB[playerid][admin])
Line 1352 return1;
Reply
#4

Код:
if(playerDB[playerid][specialybe]== 40 || playerDB[playerid][admin])
{
COMMAND:aaa( playerid, params [ ] )
MoveObject(armija,-1627.343750, 358.795929, -1.898168, 3);
    return 1;
}
do work?
Reply
#5

invalid function or declaration ....
If i puting in the callback error's if not in callback erros
I understand...
Reply
#6

pawn Код:
COMMAND:aaa(playerid, params[])
{
    if(playerDB[playerid][specialybe] == 40 || playerDB[playerid][admin])
    {
        MoveObject(armija, -1627.343750, 358.795929, -1.898168, 3);
        }
    return 1;
}
Reply
#7

Thanks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)