Help me for Map Filter Script ERROR !!!
#1

please help me I am in server mapping through filter script but once I made the error code, please correct my code and what caused the problem in the code

Код:
/*Map made by Egy
Free to use and edit, just don't change the credits.
Version 1.0 , 29/12/2011
*/

#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    CreateObject(1646, 1008.64355, -1009.69556, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.69415, -1011.36554, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67133, -1013.22699, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63751, -1014.86835, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.66583, -1016.52118, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63214, -1018.30328, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.62714, -1019.85944, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67847, -1021.38757, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.68860, -1008.13379, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.73090, -1006.55219, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.77832, -1004.86938, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.80658, -1003.18903, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(16151, 981.44983, -1012.70532, 42.04210,   0.00000, 0.00000, 90.00000);
    CreateObject(1432, 974.91901, -1027.48962, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.97852, -1024.34766, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.33661, -1027.33325, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.32330, -1023.32208, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 983.25165, -1027.58777, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 982.91406, -1024.02344, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 987.05060, -1027.41174, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.87885, -1020.58167, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(4206, 997.79559, -1012.72882, 41.68660,   0.00000, 0.00000, 0.00000);
    CreateObject(2964, 1031.09033, -998.37073, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1025.53271, -998.34033, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1020.34406, -998.31622, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1015.23340, -998.46466, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(1646, 1003.86731, -1025.64600, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 1002.00250, -1025.65063, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 999.91406, -1025.65991, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 998.01599, -1025.66589, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 996.09778, -1025.66797, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 994.03864, -1025.66162, 41.96090,   356.85840, 0.00000, -180.00000);
    RemoveBuildingForPlayer(playerid, 1646, 975.8594, -1017.2422, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 980.0156, -1017.2422, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 998.6563, -1024.3750, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1018.1328, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1015.4063, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1008.8516, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 1004.1953, -1001.3594, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1018.5469, 41.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1007.7500, 41.9609, 0.25);
   	return 1;
}
and error compile

Код:
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(43) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(44) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(45) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(46) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(47) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(48) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(49) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(50) : error 017: undefined symbol "playerid"
C:\Users\Home\Downloads\Compressed\MODE SAMP\CBF FreeRoam\filterscripts\poolparty.pwn(51) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
sorry for my english is not good
Reply
#2

pawn Код:
/*Map made by Mazen and mark and mahmoud
Free to use and edit, just don't change the credits.
Version 1.0 , 29/12/2011
*/


#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    CreateObject(1646, 1008.64355, -1009.69556, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.69415, -1011.36554, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67133, -1013.22699, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63751, -1014.86835, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.66583, -1016.52118, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63214, -1018.30328, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.62714, -1019.85944, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67847, -1021.38757, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.68860, -1008.13379, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.73090, -1006.55219, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.77832, -1004.86938, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.80658, -1003.18903, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(16151, 981.44983, -1012.70532, 42.04210,   0.00000, 0.00000, 90.00000);
    CreateObject(1432, 974.91901, -1027.48962, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.97852, -1024.34766, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.33661, -1027.33325, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.32330, -1023.32208, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 983.25165, -1027.58777, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 982.91406, -1024.02344, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 987.05060, -1027.41174, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.87885, -1020.58167, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(4206, 997.79559, -1012.72882, 41.68660,   0.00000, 0.00000, 0.00000);
    CreateObject(2964, 1031.09033, -998.37073, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1025.53271, -998.34033, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1020.34406, -998.31622, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1015.23340, -998.46466, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(1646, 1003.86731, -1025.64600, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 1002.00250, -1025.65063, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 999.91406, -1025.65991, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 998.01599, -1025.66589, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 996.09778, -1025.66797, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 994.03864, -1025.66162, 41.96090,   356.85840, 0.00000, -180.00000);
    return 1;
}

public OnPlayerSpawn(playerid)
{
RemoveBuildingForPlayer(playerid, 1646, 975.8594, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 980.0156, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 998.6563, -1024.3750, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1018.1328, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1015.4063, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1008.8516, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1004.1953, -1001.3594, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1018.5469, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1007.7500, 41.9609, 0.25);
return 1;
}
Reply
#3

ok thanks
Reply
#4

not problem
Reply
#5

error compile

Код:
C:\Users\Home\Downloads\Compressed\MODE SAMP\SenjoritaGaming\filterscripts\poolparty.pwn(47) : error 055: start of function body without function header
C:\Users\Home\Downloads\Compressed\MODE SAMP\SenjoritaGaming\filterscripts\poolparty.pwn(57) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#6

Quote:
Originally Posted by ScRipTeRi
Посмотреть сообщение
pawn Код:
/*Map made by Mazen and mark and mahmoud
Free to use and edit, just don't change the credits.
Version 1.0 , 29/12/2011
*/


#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    CreateObject(1646, 1008.64355, -1009.69556, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.69415, -1011.36554, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67133, -1013.22699, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63751, -1014.86835, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.66583, -1016.52118, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.63214, -1018.30328, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.62714, -1019.85944, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.67847, -1021.38757, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.68860, -1008.13379, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.73090, -1006.55219, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.77832, -1004.86938, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(1646, 1008.80658, -1003.18903, 41.96094,   356.85840, 0.00000, -1.57080);
    CreateObject(16151, 981.44983, -1012.70532, 42.04210,   0.00000, 0.00000, 90.00000);
    CreateObject(1432, 974.91901, -1027.48962, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.97852, -1024.34766, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.33661, -1027.33325, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 979.32330, -1023.32208, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 983.25165, -1027.58777, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 982.91406, -1024.02344, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 987.05060, -1027.41174, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(1432, 974.87885, -1020.58167, 41.65370,   0.00000, 0.00000, 0.00000);
    CreateObject(4206, 997.79559, -1012.72882, 41.68660,   0.00000, 0.00000, 0.00000);
    CreateObject(2964, 1031.09033, -998.37073, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1025.53271, -998.34033, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1020.34406, -998.31622, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(2964, 1015.23340, -998.46466, 41.76170,   0.00000, 0.00000, 90.00000);
    CreateObject(1646, 1003.86731, -1025.64600, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 1002.00250, -1025.65063, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 999.91406, -1025.65991, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 998.01599, -1025.66589, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 996.09778, -1025.66797, 41.96090,   356.85840, 0.00000, -180.00000);
    CreateObject(1646, 994.03864, -1025.66162, 41.96090,   356.85840, 0.00000, -180.00000);
    return 1;
}

public OnPlayerSpawn(playerid)
{
RemoveBuildingForPlayer(playerid, 1646, 975.8594, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 980.0156, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 998.6563, -1024.3750, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1018.1328, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1015.4063, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1008.8516, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1004.1953, -1001.3594, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1018.5469, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 1008.1094, -1007.7500, 41.9609, 0.25);
return 1;
}
Try Again this its Edited.
Reply
#7

ok not problem,thanks bro
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)