13.07.2012, 14:46
Errors:
All of them are on line 18:
1. undefined symbol "PlayerInfo"
2. expression has no effect
3. unexpected token ";", but found "]"
4. invalid expression, assumed zero
5. fatar error 107: too many error messages on one line.
Script:
Line 18 is red colored.
All of them are on line 18:
1. undefined symbol "PlayerInfo"
2. expression has no effect
3. unexpected token ";", but found "]"
4. invalid expression, assumed zero
5. fatar error 107: too many error messages on one line.
Script:
Код:
#include <a_samp> #define dgate_1 1 #define ownermsg1 2 new gate; public OnFilterScriptInit() { gate = CreateObject(976,-2275.8000488281, 2348.8000488281, 3.7999999523163, 0.0, 0.0, 56); //Add this on the top of the scrip below the defines // new gate; //then add // gate = your object } // public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/gateopen", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] == 6) { ShowPlayerDialog(playerid, dgate_1, DIALOG_STYLE_LIST, "Dialog Gate Options", "Open Gate \nClose Gate \nHouse Owner \n Teleport", " Choose Option ", ""); return 1; } else return SendClientMessage(playerid, FFFFFF, "You are not a PD Officer!"); } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid==dgate_1) { if(response) { if(listitem == 0)//Open Gate { MoveObject(gate,-2275.8000488281, 2348.8000488281, 0.3999999523163 ,0.50); } if(listitem == 1)//Close Gate { MoveObject(gate,-2275.8000488281, 2348.8000488281, 3.7999999523163,0.50); } if(listitem == 2) //Owner Info Opention { ShowPlayerDialog(playerid, ownermsg1, DIALOG_STYLE_MSGBOX, "Notice", "Name: \n Job: \n Staff Member:", "Okay", "Then"); } if(listitem == 3)//Teleport Option { SetPlayerInterior (playerid, 0); SetPlayerPos(playerid, 1497.2285, -707.8083, 98.0334 ); } } return 1; } return 0; }