Small Adding map to script help.
#1

hello,

i tried adding Removebuildingforplayer map under filterscriptinit and gamemodeinit

but nuthin happens....

your help will do a great favour for me.

regards,
Reply
#2

Place it under Public OnPlayerConnect(playerid). It doesn't work if we place it under OnFilterScriptInit() / OnGameModeInit() as they don't have the playerid parameter.
Reply
#3

Do RemoveBuildingForPlayer under Onplayerconnect and compile it...
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)