Page 2 of 2

Re: Klausimelis...

Posted: 2011 May 01 12:09
by psychical
Nu skripteriai, pagelbekit ^^

Code: Select all

public display_items(id){    new szMotd[2048], szTitle[64], iPos = 0    format(szTitle, 63, "Items List")    iPos += format(szMotd[iPos], 2047-iPos, "<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><pre><body>")    iPos += format(szMotd[iPos], 2047-iPos, "^n^n<b>%s</b>^n^n", szTitle)    iPos += format(szMotd[iPos], 2047-iPos, "# Item Name | Item Description | Item Cost^n")        for(new i = 1; i <= g_numberofitems; i++)     {        iPos += format(szMotd[iPos], 2047-iPos, "%d. %s | %s | %d^n", i, g_itemname[i], g_itemdesc[i], g_itemcost[i])    }    show_motd(id, szMotd, szTitle)    return PLUGIN_HANDLED;}
Turiu va toki koduka (is gunxp modo) ka ipsu juo padaryti kad rodytu ID?

P.S. Isvis, kaip su juo ta motd pastatyt? xD

Re: Klausimelis...

Posted: 2011 May 01 13:20
by beast

Code: Select all

public tavo_motd_funkcija(id){    const size = 1536    new msg[size], len     len = format(msg, size,"<html><body bgcolor=#000000><center>")    len += format(msg[len], size-len, "<font color='green' size='5'>Mano ID: %d</font>", id)    len += format(msg[len], size-len, "</center></body></html>")     show_motd(id, msg, "Motd antraštė")}