#1

So i have a command called /settax which sets everyone Tax to the amount on the server and on my mysql database (accounts\Tax). How can i make that if someone registers, it will set their tax to the one the president has?
Reply
#2

example
pawn Код:
new Query[200];
format(Query,sizeof(Query)," INSERT INTO `PlayerData`(/*name,pass,etc..*/`Tax`) VALUES('%s')",tax);
Reply
#3

i need to detect the Tax from the president on mysql if they are offline.
Reply
#4

Subqueries.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Subqueries.
How i do that?
Reply
#6

PHP код:
UPDATE playerdata SET tax = (SELECT tax FROM sometable WHERE status 'president'WHERE psqlid 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)