#1

Okay well i attempt to make a String, so when a Onduty admin talks it will talk like this
Admin [NAME] : [text] i use ladmin4v2.
I came with this in onplayertext

pawn Код:
if(PlayerInfo[playerid][Adminduty] = 1;)   {
    new string[128];
    format(string, sizeof(string), "Admin %s: ", pName(playerid) );
    SendClientMessageToAll(0xFF0000AA, string);
    return 0;
    }
But i get like a list full of errors what dont make sence.
Because i dont get a single error or warnings when compiling without this.
Reply
#2

Post the errors,and you got another script for text?Becouse this it should be

Код:
if(PlayerInfo[playerid][Adminduty] = 1;)   
{
    new string[128];
    format(string, sizeof(string), "Admin %s: %s ", pName(playerid),text );//or your variable..
    SendClientMessageToAll(0xFF0000AA, string);
    return 0;
    }
Reply
#3

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Post the errors,and you got another script for text?Becouse this it should be

Код:
if(PlayerInfo[playerid][Adminduty] = 1;)   
{
    new string[128];
    format(string, sizeof(string), "Admin %s: %s ", pName(playerid),text );//or your variable..
    SendClientMessageToAll(0xFF0000AA, string);
    return 0;
    }
When i use your code
pawn Код:
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(710) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(809) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(975) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(986) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1008) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1034) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1037) : error 021: symbol already defined: "format"
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1039) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1047) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1056) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1087) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1106) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1122) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1137) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1153) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1168) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1184) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1200) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1220) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1249) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1265) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1281) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1297) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1312) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1322) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1358) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1371) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1380) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1400) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1415) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1430) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1446) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1460) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1474) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1491) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1499) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1624) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1654) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1736) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1799) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1883) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2070) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2091) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2108) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2130) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2140) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2194) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2227) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2235) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2243) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2258) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2275) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2301) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2322) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2367) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2415) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2442) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2462) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2479) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2494) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2507) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2524) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2546) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2595) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2618) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2643) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2671) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2696) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2720) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2754) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2774) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2793) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2825) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2845) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2864) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2889) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2909) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2927) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2946) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3002) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3043) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3127) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3137) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3152) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3188) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3256) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3299) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3338) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3358) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3380) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3393) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3408) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3478) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3509) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3531) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3547) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3675) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3689) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3703) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3719) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3733) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3747) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3761) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3775) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3789) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3803) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3819) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3834) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3848) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3865) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3875) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3892) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3908) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3924) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3941) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3957) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3973) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3990) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4005) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4124) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4327) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4343) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4356) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4398) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4436) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5101) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5279) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5394) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6134) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6166) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6292) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6309) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6400) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6463) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6474) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6486) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6589) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6694) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6709) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
But as i already said they dont make any Sence!
Reply
#4

PHP код:
if(PlayerInfo[playerid][Adminduty]==1){
    new 
string[128];
    
format(stringsizeof(string), "Admin %s: %s"pName(playerid), text);
    return 
SendClientMessageToAll(0xFF0000AAstring);

I don't know if there's any problem with your pName, because I don't know how it works, but if there is, you can just do this:

PHP код:
if(PlayerInfo[playerid][Adminduty]==1){
    new 
string[128];
    
GetPlayerName(playeridstringsizeof(string));
    
format(stringsizeof(string), "Admin %s: %s"stringtext);
    return 
SendClientMessageToAll(0xFF0000AAstring);

Reply
#5

Quote:
Originally Posted by mati233
Посмотреть сообщение
PHP код:
if(PlayerInfo[playerid][Adminduty]==1){
    new 
string[128];
    
format(stringsizeof(string), "Admin %s: %s"pName(playerid), text);
    return 
SendClientMessageToAll(0xFF0000AAstring);

I don't know if there's any problem with your pName, because I don't know how it works, but if there is, you can just do this:

PHP код:
if(PlayerInfo[playerid][Adminduty]==1){
    new 
string[128];
    
GetPlayerName(playeridstringsizeof(string));
    
format(stringsizeof(string), "Admin %s: %s"stringtext);
    return 
SendClientMessageToAll(0xFF0000AAstring);

pawn Код:
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\Pawn\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(710) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(809) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(975) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(986) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1008) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1034) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1036) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1038) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1046) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1055) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1086) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1105) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1121) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1136) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1152) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1167) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1183) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1199) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1219) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1248) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1264) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1296) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1311) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1321) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1336) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1357) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1370) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1399) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1414) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1429) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1445) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1459) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1473) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1490) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1498) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1623) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1653) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1735) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1798) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1882) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2069) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2090) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2107) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2129) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2139) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2193) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2226) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2234) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2242) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2257) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2274) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2300) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2321) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2414) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2441) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2461) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2478) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2493) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2506) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2523) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2545) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2594) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2617) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2642) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2670) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2695) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2719) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2753) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2773) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2792) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2824) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2844) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2863) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2888) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2908) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2926) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(2945) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3001) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3042) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3126) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3136) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3151) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3187) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3255) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3298) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3357) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3392) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3407) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3477) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3508) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3530) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3546) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3674) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3688) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3702) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3718) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3732) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3746) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3760) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3774) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3788) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3802) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3818) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3833) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3847) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3864) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3874) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3891) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3907) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3923) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3940) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3956) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3972) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(3989) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4004) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4123) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4326) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4355) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4397) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(4435) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5100) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5278) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(5393) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6133) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6165) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6291) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6308) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6399) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6462) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6473) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6485) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6588) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6693) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6708) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
...
Reply
#6

That means you already declared that string, just remove the new string[128], or give another name to it.
Reply
#7

Quote:
Originally Posted by mati233
Посмотреть сообщение
That means you already declared that string, just remove the new string[128], or give another name to it.
Still the same.
Now i used String[120]
Reply
#8

pawn Код:
if(PlayerInfo[playerid][Adminduty] = 1;)  
{
    new string1[128];
    format(string1, sizeof(string1), "Admin %s: %s ", pName(playerid),text );//or your variable..
    SendClientMessageToAll(0xFF0000AA, string1);
    return 0;
    }
Reply
#9

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][Adminduty] = 1;)  
{
    new string1[128];
    format(string1, sizeof(string1), "Admin %s: %s ", pName(playerid),text );//or your variable..
    SendClientMessageToAll(0xFF0000AA, string1);
    return 0;
    }
Hmm that seems to work but still 3 errors
pawn Код:
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1034) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1037) : error 021: symbol already defined: "format"
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1039) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6709) : warning 203: symbol is never used: "string1"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#10

Quote:
Originally Posted by Biess
Посмотреть сообщение
Hmm that seems to work but still 3 errors
pawn Код:
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1034) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1037) : error 021: symbol already defined: "format"
C:\Users\Bichan\Desktop\ladmin4v2.pwn(1039) : error 010: invalid function or declaration
C:\Users\Bichan\Desktop\ladmin4v2.pwn(6709) : warning 203: symbol is never used: "string1"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Where are you using that code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)