Please help me fast!!!
#1

Hey guys!
I am a new scripter i need a help i wona make Adminname: [Admin]: text (wher a admin wirte he wirte in it strig adminname: [Admin]: text) i make it with a string but i wona make it in this form: adminname(lightblue): [Admin](red): text(white)
Plzz guys help me fast tomorow is my server open day!!!
Reply
#2

http://forum.sa-mp.com/search.php
Reply
#3

This one may work...
pawn Код:
public OnPlayerText(playerid, text[]){
    new txt[256];
    new PName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, PName);
    format(txt, 256, "{0D00FF}%s {FF0000}[Admin]: {FFFFFF}%s", PName, text);
    SendClientMessageToAll(txt, GetPlayerColor(playerid)); //The GetPlayerColor stuff just for adding. It doesn't really work...
    return 0;
}
Note: Don't forget to set who is an admin or not
Reply
#4

guys thanks very much @VirSpectorX ok i will try your script thnx
Reply
#5

hmmmm not work ( plzz guys help me i use V-admin:
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\pawno\include\dutils.inc(459) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\pawno\include\dutils.inc(475) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(991) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(997) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : error 017: undefined symbol "text"
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1233) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1235) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1236) : error 017: undefined symbol "text"
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1237) : error 035: argument type mismatch (argument 1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)