01.02.2012, 22:21
I haven't posted here in ages, but here's the problem:
I can't get the text draw string or skin to change!
Code:
Thanks a lot, guys.
I can't get the text draw string or skin to change!
Code:
pawn Код:
if( PRESSED( KEY_LEFT ) )
{
new stringSkinPicker[20];
if(userRegStep[playerid] == REG_STEP_SKIN || inSkinSelection[playerid] == 1)
{
userSkinPickerSkin[playerid]++;
if(userSkinPickerSkin[playerid] == 299)
{
userSkinPickerSkin[playerid] = 0;
}
SetPlayerSkin(playerid, userSkinPickerSkin[playerid]);
format(stringSkinPicker, 20, "~<~ %d ~>~", GetPlayerSkin(playerid));
TextDrawSetString(SkinPicker3[playerid], stringSkinPicker);
}
}
if( PRESSED( KEY_RIGHT ) )
{
new stringSkinPicker[20];
if(userRegStep[playerid] == REG_STEP_SKIN || inSkinSelection[playerid] == 1)
{
userSkinPickerSkin[playerid]--;
if(userSkinPickerSkin[playerid] == 0)
{
userSkinPickerSkin[playerid] = 299;
}
SetPlayerSkin(playerid, userSkinPickerSkin[playerid]);
format(stringSkinPicker, 20, "~<~ %d ~>~", GetPlayerSkin(playerid));
TextDrawSetString(SkinPicker3[playerid], stringSkinPicker);
}
}