invalid function or declaration and unmatched closing brace ("}") errors.Help:S
#7

can you guys help me with my 6 errors and a few warnings that im trying to fix but i cant here are the erros
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 here is what i do

// 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)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)