error 010: invalid function or declaration -
nissan123 - 01.09.2010
Can Anyone Help Me They gave me this warning
warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(114) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(122) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(122) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(129) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(134) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(137) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(139) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(144) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(145) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
and heres the script that i did
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define FILTERSCRIPT
#include <a_samp>
#pragma tabsize 0
new sf;
new sf2;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" SFPD Gates Created By GTRSkyYo");
print("--------------------------------------\n");
sf = CreateObject(980, -1624.64, 688.20, 9.00, 0.00, 0.00, 180.00);
sf2 = CreateObject(980, -1634.78, 688.19, 9.00, 0.00, 0.00, 180.00);
sf = CreateObject(980, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
sf2 = CreateObject(980, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
CreateObject(987, -1701.50, 701.23, 24.00, 0.00, 0.00, -92.00);
CreateObject(987, -1700.99, 712.96, 24.00, 0.00, 0.00, -92.00);
CreateObject(987, -1700.66, 720.02, 24.00, 0.00, 0.00, -92.00);
CreateObject(987, -1688.25, 720.30, 24.00, 0.00, 0.00, 184.00);
CreateObject(987, -1679.23, 719.07, 24.00, 0.00, 0.00, 174.00);
CreateObject(987, -1667.47, 719.43, 24.00, 0.00, 0.00, 181.00);
CreateObject(987, -1662.32, 718.68, 24.00, 0.00, 0.00, 174.00);
sf = CreateObject(980, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
sf2 = CreateObject(980, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
sf = CreateObject(980, -1701.80, 693.02, 26.66, 0.00, 0.00, 91.00);
sf2 = CreateObject(980, -1571.60, 653.37, 9.00, 0.00, 0.00, -90.00);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sfpd2", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 9.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 9.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpd", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment Gates");
return 1;
}
return 1;
}
if (strcmp("/sfpdb", cmdtext, true) == 0)
{
MoveObject(sf, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates Back");
return 1;
}
return 1;
}
if (strcmp("/sfpdmg", cmdtext, true) == 0)
{
MoveObject(sf, -1701.80, 693.02, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.60, 653.37, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment MainGates");
return 1;}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
Re: error 010: invalid function or declaration -
LarzI - 01.09.2010
pawn Код:
if (strcmp("/sfpd", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment Gates");
return 1;
}
return 1;
}
if (strcmp("/sfpdb", cmdtext, true) == 0)
{
MoveObject(sf, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates Back");
return 1;
}
return 1;
}
Change to
pawn Код:
if (strcmp("/sfpd", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpdb", cmdtext, true) == 0)
{
MoveObject(sf, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates Back");
return 1;
}
Re: error 010: invalid function or declaration -
Voldemort - 01.09.2010
CreateObject(980, -1571.60, 653.37, 9.00, 0.00, 0.00, -90.00,
DrawDistance??);
Re: error 010: invalid function or declaration -
[HiC]TheKiller - 01.09.2010
Draw distance isn't needed due to it being defult.
Quote:
Originally Posted by Wiki
(optional) The distance that San Andreas renders objects. 0.0 will cause objects to render at their default distances. 300.0 is the usable maximum.
|
Re: error 010: invalid function or declaration -
Voldemort - 01.09.2010
Your right, I just tested it if someone will notice it
The real prob is in
MoveObject(sf, -1701.59, 685.49, 26.66,
0.00, 0.00, 91.00);
You dont need Rotation on MoveObject
MoveObject(sf, -1701.59, 685.49, 26.66, 3.0);
What I hate most is that players not even try to understand what kind of errors pawno pop up, for all cmds there is native, did really none use it?
Write for example MoveObject( and wait, than there will native pop up and on bottom of pawno
Re: error 010: invalid function or declaration -
nissan123 - 01.09.2010
now i left with 2 errors the errors are C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(135) : error 010: invalid function or declaration
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(140) : error 010: invalid function or declaration
and help me with my warning please the warning are still these
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(114) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(114) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(122) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(122) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(12

: warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(12

: warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(129) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(129) : warning 202: number of arguments does not match definition
and here are the script that i edited
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sfpd2", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 9.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 9.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpd", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpdb", cmdtext, true) == 0)
{
MoveObject(sf, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates Back");
return 1;
}
return 1;
}
if (strcmp("/sfpdmg", cmdtext, true) == 0)
{
MoveObject(sf, -1701.80, 693.02, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.60, 653.37, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment MainGates");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
Re: error 010: invalid function or declaration -
Zonoya - 20.08.2011
removed