Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Mass pm from web
|
Author |
Message |
Pidrila
Apprentice
Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0
|
Mass pm from web
How i can mass pm to all players from web? I have a database where i add mass pm., but how can i display in game this message? Something like
Code:
"select mass_pm from database_ultima where topic_status =1"
Serv.allclients sysmessage <db.row.0.masspm> ...
or open like a dialog each player..
Sent from my PAP4055DUO using Tapatalk
Code:
[PLEVEL 1]
f_mass_pm
[function f_mass_pm]
db.connect
if ( <DB.connected> )
DB.QUERY "SELECT * FROM ibf_posts WHERE status='1'"
if (<DB.ROW.NUMROWS> > 0)
for R 0 <eval <DB.ROW.NUMROWS>-1>
if (<DB.ROW.<eval <LOCAL.R>>.status> = 1)
DB.EXECUTE "UPDATE ibf_posts SET status='0' WHERE pid='<DB.ROW.<eval <LOCAL.R>>.pid>'"
serv.log Account: <DB.ROW.<eval <LOCAL.R>>.pid> mass pm from web
sysmessage @55 <db.row.<eval <LOCAL.R>>.post>
endif
end
endif
endif
okey i got that.. but how i can add not a sysmessage but something like a dialog appears? and in this dialog shows this message..??
(This post was last modified: 02-07-2014 11:36 PM by Pidrila.)
|
|
02-07-2014 10:38 PM |
|
|
Pidrila
Apprentice
Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0
|
RE: Mass pm from web
Code:
[function f_mass_pm]
db.connect
if ( <DB.connected> )
DB.QUERY "SELECT * FROM ibf_posts WHERE status='1'"
if (<DB.ROW.NUMROWS> > 0)
for R 0 <eval <DB.ROW.NUMROWS>-1>
if (<DB.ROW.<eval <LOCAL.R>>.status> = 1)
DB.EXECUTE "UPDATE ibf_posts SET status='0' WHERE pid='<DB.ROW.<eval <LOCAL.R>>.pid>'"
serv.log Account: <DB.ROW.<eval <LOCAL.R>>.pid> mass pm from web
list.masspm.add <db.row.<eval <LOCAL.R>>.post>
serv.allclients sdialog d_mass_pm
endif
end
endif
endif
[DIALOG d_mass_pm]
100, 100
PAGE 0
resizepic 0 0 9300 550 270
for 0 <eval <list.masspm.count>-1>
dtext 100 <eval 100+(20*<dlocal._for>)> 0 <list.masspm.<dlocal._for>>
endfor
tried, but dialog doesnt appear for player..
only if manualy .sdialog d_mass_pm
and there appears all of messages that was made.
i need only last one..
|
|
02-08-2014 02:28 AM |
|
|
User(s) browsing this thread: 4 Guest(s)