The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Ok...That didnt work...
But then I had an idea - Why query the database for "$whichscore" if the score value is already defined - So I was thinking: Code:
if ($answer == $ganswer){ $score = $gscore; } elseif ($answer == $sanswer){ $score = $sscore; } elseif ($answer == $hanswer){ $score = $hscore; } else { $score = $rscore; } $gscore = 4; $hscore = 3; $rscore = 2; $sscore = 1; if ($bbuserinfo['usergroupid'] == 2){ $DB_site->query("UPDATE user SET question1 = '" .$theqid ."', score1 = '" .$score ."' WHERE userid = '" .$bbuserinfo[userid]."'"); } ![]() Edit: It didn't work ![]() Satan |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|