31.03.2011, 21:29
you for got the { after some if statement
Code:
if(strcmp(cmdtext,"/nrg",true)==0) { if(DMArea[playerid] == 1) return ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"{FF0000}Error:","{00F6F6}Cannot teleport while at DM area","Exit","Cancel"); { if(IsPlayerInRangeOfPoint(playerid,7.0,169.4746,-1765.3291,14.7578)) { SendClientMessage(playerid,red,"Test"); } PlayerInDm[playerid] = 0; HOP[playerid] = 1; DMArea[playerid] = 0; SetPlayerFacingAngle(playerid,70.9471); SetPlayerPos(playerid,991.0759,-1823.6770,19.0977); DestroyVehicle(veh[playerid]); new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); veh[playerid] = CreateVehicle(522, 991.0759,-1823.6770,19.0977, 70.9471, -1, -1, -1); PutPlayerInVehicle(playerid, veh[playerid], 0); if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { PutPlayerInVehicle(playerid,veh[playerid] ,0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"~g~~h~NRG Parkour",2000,1); } return 1; }