Remove Build
#1

How to remove build on my samp server please tell me !
Reply
#2

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Reply
#3

Try reading this RemoveBuildingForPlayer - SA-MP Wiki

EDIT:LOL LATE
Reply
#4

use this line in :

PHP код:
public OnGameModeInit()
{
        
RemoveBuildingForPlayer(playerid//Here ur building id and its cordinates);
    
return 1;

Reply
#5

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
use this line in :

PHP код:
public OnGameModeInit()
{
        
RemoveBuildingForPlayer(playerid//Here ur building id and its cordinates);
    
return 1;

It's to be used on OnPlayerConnect and not on OnGameModeInit callback.On a side note, use funky's include, exclusively made for that purpose.
Reply
#6

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
use this line in :

PHP код:
public OnGameModeInit()
{
        
RemoveBuildingForPlayer(playerid//Here ur building id and its cordinates);
    
return 1;

OnGameModeInit() does'nt have playerid. You can add it in any another callback with playerid like OnPlayerConnect(playerid).
Reply
#7

Quote:

public OnPlayerConnect(playerid)
{
I put here the remove bulding codes
return 1;
}

Then where i shut save it ? wich folder ?
Reply
#8

Quote:
Originally Posted by bathushan
Посмотреть сообщение
Then where i shut save it ? wich folder ?
You dont save it in a folder, you put it in the pawno with the script. Then compile it...
Reply
#9

also in script files. well i going to do it when it done will give you one +rep.
(becouse i tred this thing nealy 2 weeks )

Edit - i done it but i get errors
here is that error massege

Quote:

C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(3) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(4) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(5) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(6) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(7) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(8) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(9) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(10) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(11) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(12) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(13) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(14) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(15) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(16) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(17) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(18) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(19) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(20) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(21) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(22) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(23) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(24) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(25) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(26) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(27) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Users\N.Bathushan Raj\Desktop\Server\scriptfiles\SF_Removed.pwn(28) : error 017: undefined symbol "RemoveBuildingForPlayer"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

My code was

Quote:

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 10983, -2076.6484, 222.8516, 31.2188, 0.25);
RemoveBuildingForPlayer(playerid, 11143, -2076.6484, 222.8516, 31.2188, 0.25);
RemoveBuildingForPlayer(playerid, 11223, -2049.1719, 250.3203, 33.0781, 0.25);
RemoveBuildingForPlayer(playerid, 11279, -2038.7500, 150.7109, 31.1953, 0.25);
RemoveBuildingForPlayer(playerid, 11326, -2041.9453, 121.1797, 30.1875, 0.25);
RemoveBuildingForPlayer(playerid, 11327, -2026.9141, 129.4063, 30.4531, 0.25);
RemoveBuildingForPlayer(playerid, 11328, -2041.9453, 121.1797, 30.1875, 0.25);
RemoveBuildingForPlayer(playerid, 11339, -2079.9531, 159.2031, 30.8672, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2063.2422, 258.7500, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2063.0156, 247.9453, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7500, 249.9531, 35.5938, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7031, 229.8047, 35.3516, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2059.5313, 256.5234, 37.0078, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 11340, -2079.9531, 159.2031, 30.8672, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2082.5391, 153.5469, 40.1016, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2079.8203, 159.6719, 40.8906, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2111.8828, 172.4688, 40.1953, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2116.7500, 177.0781, 40.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1350, -2136.4375, 213.4219, 34.3125, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2064.2109, 210.1406, 41.2578, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2107.0313, 226.0391, 40.8438, 0.25);
RemoveBuildingForPlayer(playerid, 10984, -2126.1563, 238.6172, 35.2656, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2102.2109, 230.7031, 40.0547, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 10986, -2130.0547, 275.5625, 35.3750, 0.25);
RemoveBuildingForPlayer(playerid, 10987, -2137.8203, 264.2813, 35.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2113.3125, 268.5078, 40.5703, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2118.1328, 263.8438, 41.3594, 0.25);
RemoveBuildingForPlayer(playerid, 10985, -2099.2734, 292.9141, 35.0703, 0.25);
RemoveBuildingForPlayer(playerid, 11391, -2056.2031, 158.5469, 29.0938, 0.25);
RemoveBuildingForPlayer(playerid, 11359, -2052.6250, 150.4688, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 11388, -2048.1797, 166.7188, 34.5156, 0.25);
RemoveBuildingForPlayer(playerid, 11389, -2048.1172, 166.7188, 30.9766, 0.25);
RemoveBuildingForPlayer(playerid, 11390, -2048.1797, 166.7188, 32.2266, 0.25);
RemoveBuildingForPlayer(playerid, 11392, -2047.7578, 168.1406, 27.8828, 0.25);
RemoveBuildingForPlayer(playerid, 11394, -2048.1641, 168.3125, 31.7344, 0.25);
RemoveBuildingForPlayer(playerid, 11360, -2038.8672, 170.3203, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 11387, -2038.7500, 150.7109, 31.1953, 0.25);
RemoveBuildingForPlayer(playerid, 11393, -2043.5156, 161.3438, 29.3359, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2059.3438, 205.5313, 40.4688, 0.25);
RemoveBuildingForPlayer(playerid, 11226, -2049.1719, 250.3203, 29.3750, 0.25);
RemoveBuildingForPlayer(playerid, 11416, -2038.9297, 178.8047, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2048.4531, 265.0938, 41.6563, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2041.7500, 265.1016, 40.8672, 0.25);
RemoveBuildingForPlayer(playerid, 11143, -2076.6484, 222.8516, 31.2188, 0.25);
RemoveBuildingForPlayer(playerid, 11223, -2049.1719, 250.3203, 33.0781, 0.25);
RemoveBuildingForPlayer(playerid, 11279, -2038.7500, 150.7109, 31.1953, 0.25);
RemoveBuildingForPlayer(playerid, 11326, -2041.9453, 121.1797, 30.1875, 0.25);
RemoveBuildingForPlayer(playerid, 11327, -2026.9141, 129.4063, 30.4531, 0.25);
RemoveBuildingForPlayer(playerid, 11328, -2041.9453, 121.1797, 30.1875, 0.25);
RemoveBuildingForPlayer(playerid, 11339, -2079.9531, 159.2031, 30.8672, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2063.2422, 258.7500, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2063.0156, 247.9453, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7500, 249.9531, 35.5938, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7031, 229.8047, 35.3516, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2059.5313, 256.5234, 37.0078, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 11340, -2079.9531, 159.2031, 30.8672, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2082.5391, 153.5469, 40.1016, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2079.8203, 159.6719, 40.8906, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2111.8828, 172.4688, 40.1953, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2116.7500, 177.0781, 40.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1350, -2136.4375, 213.4219, 34.3125, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2064.2109, 210.1406, 41.2578, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2107.0313, 226.0391, 40.8438, 0.25);
RemoveBuildingForPlayer(playerid, 10984, -2126.1563, 238.6172, 35.2656, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2102.2109, 230.7031, 40.0547, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 10986, -2130.0547, 275.5625, 35.3750, 0.25);
RemoveBuildingForPlayer(playerid, 10987, -2137.8203, 264.2813, 35.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2113.3125, 268.5078, 40.5703, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2118.1328, 263.8438, 41.3594, 0.25);
RemoveBuildingForPlayer(playerid, 10985, -2099.2734, 292.9141, 35.0703, 0.25);
RemoveBuildingForPlayer(playerid, 11391, -2056.2031, 158.5469, 29.0938, 0.25);
RemoveBuildingForPlayer(playerid, 11359, -2052.6250, 150.4688, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 11388, -2048.1797, 166.7188, 34.5156, 0.25);
RemoveBuildingForPlayer(playerid, 11389, -2048.1172, 166.7188, 30.9766, 0.25);
RemoveBuildingForPlayer(playerid, 11390, -2048.1797, 166.7188, 32.2266, 0.25);
RemoveBuildingForPlayer(playerid, 11392, -2047.7578, 168.1406, 27.8828, 0.25);
RemoveBuildingForPlayer(playerid, 11394, -2048.1641, 168.3125, 31.7344, 0.25);
RemoveBuildingForPlayer(playerid, 11360, -2038.8672, 170.3203, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 11387, -2038.7500, 150.7109, 31.1953, 0.25);
RemoveBuildingForPlayer(playerid, 11393, -2043.5156, 161.3438, 29.3359, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2059.3438, 205.5313, 40.4688, 0.25);
RemoveBuildingForPlayer(playerid, 11226, -2049.1719, 250.3203, 29.3750, 0.25);
RemoveBuildingForPlayer(playerid, 11416, -2038.9297, 178.8047, 29.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2048.4531, 265.0938, 41.6563, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2041.7500, 265.1016, 40.8672, 0.25);
return 1;
}

Why not working ??? Complie was saved in scriptfiles.
What is wrong here ?
Reply
#10

Like i said, put it in the pawno script not a script by itself. If you want to do that you will have to define the "RemoveBuildingForPlayer".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)