03.06.2013, 13:31
Hello Everyone,
I've downloaded a house script because I can't make one by myself (I am a beginner) I am trying to make an exit house command but I cant find how to:
I am a beginner so I don't know much about pawno etc.
Hopefully someone can help me out.
I've downloaded a house script because I can't make one by myself (I am a beginner) I am trying to make an exit house command but I cant find how to:
Quote:
// This function is used to spawn back at the entrance of your house command:exit(playerid,HouseID) House_Exit(playerid, HouseID) { // Set the player in the normal world again SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); // Set the position of the player at the entrance of his house SetPlayerPos(playerid, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]); // Also clear the tracking-variable to track in which house the player is APlayerData[playerid][CurrentHouse] = 0; // Check if there is a timer-value set for exiting the house (this timer freezes the player while the environment is being loaded) if (ExitHouseTimer > 1000) { // Don't allow the player to fall TogglePlayerControllable(playerid, 0); // Let the player know he's frozen for 5 seconds GameTextForPlayer(playerid, "Waiting for the environment to load", ExitHouseTimer, 4); // Start a timer that will allow the player to fall again when the environment has loaded SetTimerEx("House_ExitTimer", ExitHouseTimer, false, "ii", playerid, HouseID); } return 1; } |
Quote:
C:\Users\eigenaar\Documenten\Pawno\filterscripts\U ntitled.pwn(2676) : error 020: invalid symbol name "" |
Hopefully someone can help me out.