map help
#1

ok im making a map in mta and i was going to put in my server now but i dont know where to put it in gamemode? or in filterscript

help me out here dudes
Reply
#2

If its a gamemode put it under OnGameModeInit

and if its a filterscript put it under OnFilterScriptInit

https://sampforum.blast.hk/showthread.php?tid=282140
Reply
#3

ok done that now it comes up with this error....

C:\Users\Jozo\Desktop\gatetest.pwn(9 : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(102) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Jozo\Desktop\gatetest.pwn(104) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(107) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(112) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(114) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(119) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(121) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(124) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(129) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(131) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(136) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006,
Reply
#4

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
ok done that now it comes up with this error....

C:\Users\Jozo\Desktop\gatetest.pwn(9 : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(102) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Jozo\Desktop\gatetest.pwn(104) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(107) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(112) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(114) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(119) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(121) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(124) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(129) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(131) : error 010: invalid function or declaration
C:\Users\Jozo\Desktop\gatetest.pwn(136) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006,
show me the code how you posted it with the OnGameModeInit/OnFilterScriptInit callback.
Reply
#5

crap i deleted it
Reply
#6

Okay okay, listen.. Did you convert your .map to CreateObject ?

If so, then add em like this

PHP код:
public OnGameModeInit() 

    
// The CreateObject codes goes here. 
    
return 1

Reply
#7

it wont let us compile
Reply
#8

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
it wont let us compile
show me the code you're trying to compile.
Reply
#9

convert it in www.converffs.com

then paste it in your pawno
Reply
#10

have a look at my gamemode

just do the same

=================================================
#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("blank gamemode");
put it here LOOOK BELOW
================================

LOOOK


#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("blank gamemode");
AddPlayerClass(287, -217.2522,-61.3062,13.4257,156.0470, 1, 0, 4, 0, 8, 0);
AddStaticPickup(1242, 2, 270.8563,1944.5854,17.6406); //Armor @ GENERALMINAZ-spawn
AddStaticPickup(1240, 2, 283.1900,1944.6969,17.6406); //health @ GENERALMINAZ-spawn
AddStaticPickup(346, 2, 284.7303,1967.4221,17.6406); //colt 45 @ GENERALMINAZ-spawn
AddStaticPickup(371, 2, 270.9676,1967.1711,17.6406); //paracute @ GENERALMINAZ-spawn
AddStaticPickup(1242, 2, -179.8758,-82.3923,29.4781); //Armor @ GENERALandrew-spawn
AddStaticPickup(1240, 2, -279.5856,-43.7247,29.4781); //health @ GENERALandrew-spawn
AddStaticPickup(342, 2, -205.6358,167.7147,29.4781); //grenade @ GENERALandrew-spawn
AddStaticPickup(371, 2, -102.3418,130.3008,29.4781); //paracute @ GENERALandrew-spawn
AddStaticVehicle(520,-183.2539,4.4882,32.1911,7.8388,2,3); //
AddStaticVehicle(520,-194.5810,6.6167,32.1913,309.2457,1,56); //
AddStaticVehicle(432,-237.5436,90.6348,13.4345,250.1995,3,86); //
AddStaticVehicle(432,-236.0623,95.8886,13.4398,248.4643,2,3); //
AddStaticVehicle(432,-234.0550,100.5303,13.4441,246.8902,1,3); //
AddStaticVehicle(432,-232.3589,105.2537,13.4316,248.3558,3,0); //
AddStaticVehicle(433,-229.6829,110.4126,13.8622,248.0991,86,56); //
AddStaticVehicle(433,-227.6349,115.4360,13.8624,248.2880,3,86); //
AddStaticVehicle(433,-225.7499,120.1225,13.8628,248.3770,86,56); //
AddStaticVehicle(433,-224.0443,124.5303,13.8630,248.1732,1,0); //
AddStaticVehicle(433,-222.3529,128.6867,13.8625,248.4573,86,0); //
AddStaticVehicle(451,-220.3585,132.6556,13.1316,248.8871,16,0); //
AddStaticVehicle(451,-219.3599,135.8773,13.1329,247.3997,16,79); //
AddStaticVehicle(451,-218.1361,138.8865,13.1317,248.5040,16,86); //
AddStaticVehicle(522,-216.8219,142.6006,12.9868,246.0493,16,16); //
AddStaticVehicle(522,-216.2520,143.5515,12.9941,250.1032,16,16); //
AddStaticVehicle(522,-215.7078,144.6809,12.9966,241.8373,16,16); //
AddStaticVehicle(468,-215.1234,146.2421,13.0939,247.5917,16,16); //
AddStaticVehicle(468,-214.9272,147.0303,13.0938,254.4859,16,16); //
AddStaticVehicle(468,-214.7974,147.8291,13.0949,257.2610,16,16); //
AddStaticVehicle(471,-214.0941,149.8072,12.9071,246.0497,16,16); //
AddStaticVehicle(471,-213.7101,151.3954,12.9074,249.1200,16,16); //
AddStaticVehicle(571,-212.7518,152.9244,12.7096,245.6498,16,16); //
AddStaticVehicle(444,-212.8858,156.5600,13.7970,250.5119,0,16); //
AddStaticVehicle(406,-209.4574,160.3407,14.9672,247.9949,16,16); //
AddStaticVehicle(476,-179.0710,-16.1097,14.1464,339.9352,16,16); //
AddStaticVehicle(476,-193.4140,-11.0368,14.1369,342.6409,16,16); //
AddStaticVehicle(476,-211.3382,-5.4904,14.1371,341.0588,16,16); //
AddStaticVehicle(425,-211.9579,44.8141,13.9977,247.0889,16,16); //
AddStaticVehicle(425,-207.3663,55.4479,14.0054,245.6787,16,16); //
AddStaticVehicle(447,-194.7038,91.3333,13.4369,247.5905,16,16); //
AddStaticVehicle(447,-198.9238,77.6285,13.4311,252.4744,16,16); //
AddStaticVehicle(455,-195.2350,166.3595,13.8624,160.5220,16,16); //
AddStaticVehicle(455,-191.6643,165.0668,13.8601,162.6452,16,16); //
AddStaticVehicle(470,-186.8438,165.4899,13.4180,160.5394,16,16); //
AddStaticVehicle(470,-183.9521,164.3979,13.4187,162.8893,16,16); //
AddStaticVehicle(487,-180.8639,157.9264,13.6017,160.5206,16,16); //
AddStaticVehicle(487,-172.5150,154.7087,13.6070,154.0396,16,16); //
CreateObject(10841,-171.19921875,-84.00000000,10.00000000,0.00000000,0.00000000,69.9 8840332); //object(drydock1_sfse01) (1)
CreateObject(10841,-163.69921875,-63.39941406,10.00000000,0.00000000,0.00000000,69.9 9938965); //object(drydock1_sfse01) (2)
CreateObject(10841,-156.39999390,-43.29999924,10.00000000,0.00000000,0.00000000,70.0 0000000); //object(drydock1_sfse01) (3)
CreateObject(10841,-148.69999695,-22.00000000,10.00000000,0.00000000,0.00000000,70.0 0000000); //object(drydock1_sfse01) (4)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)