UID216207
帖子
精華
主題
積分74225
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限40
註冊時間2009-11-27
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2024-9-6 01:09 AM |
---|
簽到天數: 1324 天 連續簽到: 1 天 [LV.10]以壇為家III
|
發表於 2010-5-7 23:20:47
|
顯示全部樓層
本帖最後由 sinya 於 2010-5-16 04:14 PM 編輯
如果不會用sql查詢 為何不用這個重寫一個
- if(getd("$@"+strcharinfo(4)) < 同ip視窗數)
- {
- setd ("$@"+strcharinfo(4),getd("$@"+strcharinfo(4))+1;
- }
- else
- {
- mes "你多開不給你進"
- close;
- }
複製代碼
然後領獎 的時後 變數歸 0 或在道管地圖登出變數 -1;
*strcharinfo(<類型>)
This function will return either the name, party name or guild name for the
invoking character. Whatever it returns is determined by type.
0 - Character's name.
1 - The name of the party they're in if any.
2 - The name of the guild they're in if any.
4 - 取得角色當前IP地址.
strcharinfo(4) 很好用喔 我也有把他加到ea14293也有這個功能 (打小廣告0.0)
|
|