I tried my best in making sure that doesn't, if they still got past it, I am stumped. Just curious are you using the new version?
I did. Here is the link.Quote:
Prof, think you can release your res script on here?
Quote:
@ Abrasive
I haven't read into the original script but your optimization will do the same what I had problem with. Meaning my first UM resurrection script resurrected an AoL character on UoF side. You need to check for Country separately with extra checks for Family. Players can change sides if they loose all of their characters.
Country=2 is only when all characters are dead. It means Faction Selection screen.
EDIT:
Here's my solution to this problem:
Code:IF (SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID=@UserUID)<>2 begin PRINT 'Player chose faction after loosing all characters. Checking whether new characters exist.' -- let's get that new faction and see if it's the same as the last time SELECT @Country=Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID=@UserUID IF EXISTS (SELECT * FROM PS_GameData.dbo.Chars WHERE UserUID=@UserUID AND Del=0) begin PRINT 'Player has new characters. Checking faction.' PRINT '----------' IF (@Family=0 OR @Family=1) AND @Country<>0 begin -- Faction is not the same. Was Alliance of Light is Union of Fury. Character not resurrected. INSERT INTO @ResultTable (CharID, CharName, Resurrected, NoFreeSlots, FactionChange) VALUES (@CharID, @CharName, 'no', 'no', 'yes'); FETCH NEXT FROM dead_um INTO @UserUID,@CharID,@Slot,@CharName,@Family CONTINUE; end ELSE IF (@Family=2 OR @Family=3) AND @Country<>1 begin -- Faction is not the same. Was Union of Fury is Alliance of Light. Character not resurrected. INSERT INTO @ResultTable (CharID, CharName, Resurrected, NoFreeSlots, FactionChange) VALUES (@CharID, @CharName, 'no', 'no', 'yes'); FETCH NEXT FROM dead_um INTO @UserUID,@CharID,@Slot,@CharName,@Family CONTINUE; end end ELSE begin PRINT 'No new characters detected. Proceeding with standard routine.' PRINT '----------' end end
You kinda answered your own question. Look at line 10 of your pvp-rank.php file and see if something doesn't look right there. Most likely a user-name / password / ip that you did wrong.Quote:
"Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\scripts\pvp-rank.php on line 10"
Right, sorry I didnt realized this thread wasent active.Quote:
You kinda answered your own question. Look at line 10 of your pvp-rank.php file and see if something doesn't look right there. Most likely a user-name / password / ip that you did wrong.
Also in the future, try not to post in threads that have had no activity for over a year. Make a new thread for help if it's needed, or John will come hunt you down..
Or, try the search (I'm sure I've seen this asked a couple of times in the past, and most likely fixed)
idk how to fix it..Quote:
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\pvp\pvp-rank.php on line 10