[HELP]ERROR RemoveBuildingForPlayer -
Kazuo - 09.01.2012
I have error on RemoveBuildingForPlayer
Код:
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1634) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1635) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1636) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1637) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
The line error
pawn Код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1382.0469, -1621.8672, 14.4844, 0.25);
RemoveBuildingForPlayer(playerid, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
return 1;
}
How to fix it ? helpme
Re: [HELP]ERROR RemoveBuildingForPlayer -
Tanush123 - 09.01.2012
go to
www.sa-mp.com and download the script files and replace those includes with yours
Re: [HELP]ERROR RemoveBuildingForPlayer -
Kazuo - 09.01.2012
There was another problem
I had seen some objectnya already disappeared because RemoveBuildingForPlayer, and after I relog, why objectnya in remove return to the original?
Re: [HELP]ERROR RemoveBuildingForPlayer -
Kazuo - 09.01.2012
help please
Re: [HELP]ERROR RemoveBuildingForPlayer -
[BG]Gamer - 09.01.2012
Try it like this :
pawn Код:
public OnGameModeInit() //or if its filterscript// public OnFilterScriptInit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
RemoveBuildingForPlayer(i, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
RemoveBuildingForPlayer(i, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
RemoveBuildingForPlayer(i, 647, 1382.0469, -1621.8672, 14.4844, 0.25);
RemoveBuildingForPlayer(i, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
}
return 1;
}
Also update your includes for 0.3d and recompline ...
Re: [HELP]ERROR RemoveBuildingForPlayer -
Kazuo - 09.01.2012
what if I relog, the building re-emerged as before? is not lost?
I use /rcon loadfs, then after I relog .. object was not returned RemoveBuilding

please help me
Also update your includes for 0.3d and recompline ...[/QUOTE]
Re: [HELP]ERROR RemoveBuildingForPlayer -
[BG]Gamer - 09.01.2012
Then paste the code in your gamemode
Re: [HELP]ERROR RemoveBuildingForPlayer -
MR,Mr - 09.01.2012
Quote:
Originally Posted by [BG]Gamer
Try it like this :
pawn Код:
public OnGameModeInit() //or if its filterscript// public OnFilterScriptInit() { for(new i = 0; i < MAX_PLAYERS; i++) { RemoveBuildingForPlayer(i, 4055, 1394.3594, -1620.6641, 32.1484, 0.25); RemoveBuildingForPlayer(i, 4220, 1370.6406, -1643.4453, 33.1797, 0.25); RemoveBuildingForPlayer(i, 647, 1382.0469, -1621.8672, 14.4844, 0.25); RemoveBuildingForPlayer(i, 4006, 1394.3594, -1620.6641, 32.1484, 0.25); } return 1; }
Also update your includes for 0.3d and recompline ...
|
OnGameModeInit? You serious? No players are going to be in the game OnGameModeInit!
I cannot help with the issue, but OnPlayerConnect is definitely the place to do this.
Re: [HELP]ERROR RemoveBuildingForPlayer -
Kazuo - 10.01.2012
Quote:
Originally Posted by MR,Mr
OnGameModeInit? You serious? No players are going to be in the game OnGameModeInit!
I cannot help with the issue, but OnPlayerConnect is definitely the place to do this.
|
no no no bro.. this it clear .. i dont have bug again .. i Put RemoveBuilding OnGameModeInit()
i using
[Include] RemoveBuilding its fixed.. thanks to you all for helping me
Re: [HELP]ERROR RemoveBuildingForPlayer -
Ash. - 10.01.2012
Quote:
Originally Posted by Kazuo
no no no bro.. this it clear .. i dont have bug again .. i Put RemoveBuilding OnGameModeInit()
i using [Include] RemoveBuilding its fixed.. thanks to you all for helping me 
|
This is exactly the reason I made this include! I'm glad it helped.