18.08.2009, 12:27
ok so basicaly i was getting the problem were when people come onto my server with a admins previous id they got there admin level too so i intergreated serif admin into my gamemode and everything works perfect now but my nrg menu crashes the server but before the server crashes i get the menu apearing then crash heres the ment code:
Any ideas ?
<thats the on gamemode innit part and heres the top of the code the new parts :
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == NRGSTUNTS) { switch(row) { case 0: //Groove nrg { SetPlayerPos(playerid, 2493.9133, -1682.3986, 13.3382); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to NRG-Stunt 1 by Linx"); } case 1: //Neer river nrg { SetPlayerPos(playerid, 1901.6283,-539.0392,21.5788); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to NRG-Stunt 2 by Linx"); } case 2: //Wheel Arch Angels { SetPlayerPos(playerid, -2705.5503, 206.1621, 4.1797); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the NRG-Stunt 3 by"); } } } return 1; }
Код:
NRGSTUNTS = CreateMenu("Nrg Stunts", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(NRGSTUNTS, 0, "NRG STUNT 1"); AddMenuItem(NRGSTUNTS, 0, "NRG STUNT 2"); AddMenuItem(NRGSTUNTS, 0, "NRG STUNT 3");
Код:
new Menu:NRGSTUNTS;