14.08.2014, 18:58
Hi guys, so I'm here with a little problem with my code, so the system is when a player comes to the server it shoes a textdraw like " player enter in te server ", I already did the textdraw, and that thing, the script hasn't errors, but has some warnings. So here's the script:
So, here's the warnings
Edit: This script is " OnPlayerConnect "
Код:
static string1[144]; //line 221
GetPlayerName(playerid, name, sizeof(name));
foreach(new i: Player)
{
SendClientMessage(playerid, branco, " sк bem-vindo ao {009BFFFF} Portugal Rising {FFFFFF} Roleplay!"); // branco = white, sк bem vindo ao portugal Rising Roleplay = Be welcome to my server
format(string1, sizeof(string1), "%s entrou no servidor.",RemoveUnderScore(playerid)); // string playerid enters in the server
new Text:Textdraw0; // the textdraw
Textdraw0 = TextDrawCreate(7.000000, 425.000000, string1); // the string
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.210000, 0.799999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 83886165);
TextDrawTextSize(Textdraw0, 140.000000, -63.000000);
TextDrawSetSelectable(Textdraw0, 0);
TextDrawShowForAll(Textdraw0);
}
return 1;
}
Код:
C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(221) : warning 225: unreachable code C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(221) : warning 217: loose indentation C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(223) : warning 217: loose indentation C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(229) : warning 217: loose indentation C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(240) : warning 217: loose indentation


