zcmd - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: zcmd (
/showthread.php?tid=175827)
zcmd -
agniukass - 11.09.2010
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
Re: zcmd -
Dime - 11.09.2010
What error?
Re: zcmd -
agniukass - 11.09.2010
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;
Re: zcmd -
Dime - 11.09.2010
Код:
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?
Re: zcmd -
agniukass - 11.09.2010
invalid function or declaration ....
If i puting in the callback error's if not in callback erros
I understand...
Re: zcmd -
Retardedwolf - 11.09.2010
pawn Код:
COMMAND:aaa(playerid, params[])
{
if(playerDB[playerid][specialybe] == 40 || playerDB[playerid][admin])
{
MoveObject(armija, -1627.343750, 358.795929, -1.898168, 3);
}
return 1;
}
Re: zcmd -
agniukass - 11.09.2010
Thanks...