20.07.2012, 19:37
So guys...how i can make this code:
With less lines?I remember something with case but i forgot it.
Thanks.
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 2)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 3)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 4)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 5)
{
GameTextForPlayer(playerid, "~w~Bather", 5000, 5);
}
else if(classid == 6)
{
GameTextForPlayer(playerid, "~r~Beach Guard", 5000, 5);
}
else if(classid == 7)
{
GameTextForPlayer(playerid, "~r~Beach Guard", 5000, 5);
}
else if(classid == 8)
{
GameTextForPlayer(playerid, "~r~Beach Guard", 5000, 5);
}
Thanks.