Klausimelis...

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Klausimelis...

Post 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

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: Klausimelis...

Post 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ė")}  

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 6 guests