Error message help
#1

Код:
public OnFilterScriptInit()

{
new Capsule1 = CreateDynamicObject(8948,-238.96049046039,1473.6326546091,149.98042869592,0.00000000,270.00000000,349.99438477); //object(lckupgrgdoor_lvs)(1)
}


The command....  


CMD:move(playerid, params[])
{
MoveObject(Capsule1, 1389.12402344,-1679.52185059,12.97999668, 4);
}
Obviously trying to make an object move in a filterscript.
However, its throwing these codes:
"C:\Users\Charivs\Downloads\NGRP\NGRP by bijoyekuza and PawnScripting\filterscripts\SAASA.pwn(49) : warning 204: symbol is assigned a value that is never used: "Capsule1"
C:\Users\Charivs\Downloads\NGRP\NGRP by bijoyekuza and PawnScripting\filterscripts\SAASA.pwn(270) : error 017: undefined symbol "Capsule1""

Obviously Capsule1 is defined, and is assigned a value... Atleast in my eyes... What'd I do wrong?
Reply
#2

PHP код:
new Capsule1;
public 
OnFilterScriptInit()
{
CreateDynamicObject(8948,-238.96049046039,1473.6326546091,149.98042869592,0.00000000,270.00000000,349.99438477); //object(lckupgrgdoor_lvs)(1)
return 1;

Reply
#3

here:
pawn Код:
new Capsule1;
public OnFilterScriptInit()

{
Capsule1 = CreateDynamicObject(8948,-238.96049046039,1473.6326546091,149.98042869592,0.00000000,270.00000000,349.99438477);
}

CMD:move(playerid, params[])
{
MoveObject(Capsule1, 1389.12402344,-1679.52185059,12.97999668, 4);
}
@gameover - the "new capsule1;" need to be out of the callback so he could use it on other callbacks
and its a zcmd cmd format , so he need to put it OUT of any callback in his script
Reply
#4

Quote:
Originally Posted by xkirill
Посмотреть сообщение
here:
pawn Код:
new Capsule1;
public OnFilterScriptInit()

{
Capsule1 = CreateDynamicObject(8948,-238.96049046039,1473.6326546091,149.98042869592,0.00000000,270.00000000,349.99438477);
}

CMD:move(playerid, params[])
{
MoveObject(Capsule1, 1389.12402344,-1679.52185059,12.97999668, 4);
}
@gameover - the "new capsule1;" need to be out of the callback so he could use it on other callbacks
and its a zcmd cmd format , so he need to put it OUT of any callback in his script
Yep, didn't see that, too distracted, About the ZCMD part, its better keeping your GM organized.

by using

PHP код:
//=========[Commands]===========// 
Reply
#5

No, put the command in the end of the script, you are using ZCMD, not strcmp.
Reply
#6

Quote:
Originally Posted by Darnell
Посмотреть сообщение
No, put the command in the end of the script, you are using ZCMD, not strcmp.
lol.. y?
i putted it at the center(middle) of my GM,and it working PERFECTLY
Reply
#7

yeah im new with zcmd havent scripted since .3b and just overlooked shit, thanks for the help & quick responses
Reply
#8

Well, It can be anywhere, but must be outside of any callback / function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)