Small Adding map to script help.
#4

Quote:
Originally Posted by Clergy
Посмотреть сообщение
hello,

i tried adding Removebuildingforplayer map under filterscriptinit and gamemodeinit

but nuthin happens....

your help will do a great favour for me.

regards,
OnGameModeInit or OnFilterscriptinIt have no "playerid" parameters. Whereas, Remove building code is like this: RemoveBuldingForPlayer(playerid, .....
You placed it in a wrong place and I'm sure you didn't even tried to compile the script, because, if you did - you may have got errors "Undefined Symbol "playerid" ".
Conclusion: Place RemoveBuldingForPlayer code under;
pawn Код:
public OnPlayerConnect(playerid)
{
 // Remove Bulding code here.
return 1;
}
The code which need to be under OnGameModeInit or OnFilterscriptInit is the CreateObject, CreateDynamicObject or whatever plugin you are using.

P.S: Don't forget to compile.
Reply


Messages In This Thread
Small Adding map to script help. - by Clergy - 06.06.2014, 05:37
Re: Small Adding map to script help. - by Adityz - 06.06.2014, 05:38
Re: Small Adding map to script help. - by Mriss - 06.06.2014, 05:38
Re: Small Adding map to script help. - by Parallex - 06.06.2014, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)