Jump to content

endar

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by endar

  1. Sorry stealth but your way didn't work, thankfully bubble's did. Thanks.
  2. $query = "INSERT INTO `creature_template` (`entry`, `modelid_m`, `modelid_f`, `name`, `subname`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed`, `rank`, `mindmg`, `maxdmg`, `attackpower`, `baseattacktime`, `rangeattacktime`, `flags`, `dynamicflags`, `size`, `family`, `bounding_radius`, `trainer_type`, `trainer_spell`, `class`, `race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `combat_reach`, `type`, `civilian`, `flag1`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `equipinfo1`, `equipinfo2`, `equipinfo3`, `equipslot1`, `equipslot2`, `equipslot3`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `ScriptName`) VALUES (($_POST['txtEntry']), ($_POST['txtmodelid_m']), ($_POST['txtmodelid_f']), ($_POST['txtname']), ($_POST['txtsubname']), ($_POST['txtminlevel']), ($_POST['txtmaxlevel']), ($_POST['txtminhealth']), ($_POST['txtmaxhealth']), ($_POST['txtminmana']), ($_POST['txtmaxmana']), ($_POST['txtarmor']), ($_POST['txtfaction']), ($_POST['txtnpcflag']), ($_POST['txtspeed']), ($_POST['txtrank']), ($_POST['txtmindmg']), ($_POST['txtmaxdmg']), ($_POST['txtattackpower']), ($_POST['txtbaseattacktime']), ($_POST['txtrangeattacktime']), ($_POST['txtflags']), ($_POST['txtdynamicflags']), ($_POST['txtsize']), ($_POST['txtfamily']), ($_POST['txtbounding_radius']), ($_POST['txttrainer_type']), ($_POST['txttrainer_spell']), ($_POST['txtclass']), ($_POST['txtrace']), ($_POST['txtminrangedmg']), ($_POST['txtmaxrangedmg']), ($_POST['txtrangedattackpower']), ($_POST['txtcombat_reach']), ($_POST['txttype']), ($_POST['txtcivilian']), ($_POST['txtflag1']), ($_POST['txtequipmodel1']), ($_POST['txtequipmodel2']), ($_POST['txtequipmodel3']), ($_POST['txtequipinfo1']), ($_POST['txtequipinfo2']), ($_POST['txtequipinfo3']), ($_POST['txtequipslot1']), ($_POST['txtequipslot2']), ($_POST['txtequipslot3']), ($_POST['txtlootid']), ($_POST['txtpickpocketloot']), ($_POST['txtskinloot']), ($_POST['txtresistance1']), ($_POST['txtresistance2']), ($_POST['txtresistance3']), ($_POST['txtresistance4']), ($_POST['txtresistance5']), ($_POST['txtresistance6']), ($_POST['txtspell1']), ($_POST['txtspell2']), ($_POST['txtspell3']), ($_POST['txtspell4']), ($_POST['txtmingold']), ($_POST['txtmaxgold']), ($_POST['txtAIName']), ($_POST['txtMovementType']), ($_POST['txtInhabitType']), ($_POST['txtScriptName'])"; That's my query, here's the error I get: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Documents and Settings\ben\Desktop\xampplite\htdocs\createnpc.php on line 119 I figured out it's starting near VALUES, so any help is appreciated. =)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.