16.02.2011, 11:39
Hey guys, So anyway im working on a cops and robbers server. Im working on a menu, The problem is.... This is like my first menu without attempting to get help but i don't know the problem to one thing... For e.g Im making a menu so when you spawn you get a menu that pops up and lets you choose a skin ( cop, robber
so like
so like
pawn Код:
new Skins[] = {
280,
281,
299,
293
};
case 0:
{
for( ; ; )
{
SelectCharPlace[playerid]++;
if(0 <= SelectCharPlace[playerid] < sizeof(Skins))
{
ChosenSkin[playerid] = Skins[SelectCharPlace[playerid]];
break;
}
else if(ChosenSkin[playerid] == 280); // I want to make it so that, Each skin i choose will pop up for e.g = [SYSTEM]: Police Officer / [SYSTEM]: Criminal... but when i attempted to do that, I used a format first then sendclientmessage, and i had a option of Next Skin and first skin - No txt, Second - 2000000lines of [SYSTEM]: Police Officer, then my menu disapears and crashes my game any ideas :P?
{
SendClientMessage(playerid, COLOR_LIME,"Test.");
}
else
{
SelectCharPlace[playerid] = -1;
}
}
SetPlayerSkin(playerid, ChosenSkin[playerid]);
ShowMenuForPlayer(Current, playerid);
TogglePlayerControllable(playerid, 0);
}