12.02.2012, 16:21
Hey,what's wrong here?
i've searched it on ******,i've deleted the new string,renamed,but,the same problem."local variable "string" shadows a variable at a preceding level"; that line is this one,new string[1024]
![Cheesy](images/smilies/biggrin.png)
pawn Код:
if(strcmp(cmd, "/vhelp", true) == 0)
{
new string[1024];
if(PlayerInfo[playerid][pVIP] >= 1)return SendClientMessage(playerid, red, "You must have a V.I.P. Account to use this command! ");
{
strcat( string, "{FFD700}/vhelp\t\t\t{FFD700}/vrespawn\n" );
strcat( string, "{FFD700}/vips\t\t\t{FFD700}/vgoto\n" );
strcat( string, "{FFD700}/vnos\t\t\t{FFD700}/vgethere\n" );
strcat( string, "{FFD700}/sultantune\t\t{FFD700}/vweapons\n" );
strcat( string, "{FFD700}/jestertune\t\t{FFD700}/vammo\n" );
strcat( string, "{FFD700}/elegytune\t\t{FFD700}/vclub\n" );
strcat( string, "{FFD700}/othertune\n" );
strcat( string, "{FFD700}Use '/vc' in front of text.This is the V.I.P. chat." );
ShowPlayerDialog( playerid, VIPCMDS, DIALOG_STYLE_MSGBOX, "V.I.P. Commands:", string, "Quit", "" );
}
return 1;
}