[Help] No errors, just doesn't work...
#1

Quote:

if (strcmp(cmd, "/stachange", true) == 0)
{
// S.T.A.
if (PlayerToPoint(3, playerid, 216.4700,168.5886,1003.0234) || PlayerToPoint(3, playerid, 255.3846, 77.3143, 1003.6406))
{

if (AccountInfo[playerid][aTeam] == 2 && AccountInfo[playerid][aLeader] == 0)
{
format(string, sizeof(string ), "<> S.T.A. Officer %s takes a clean uniform from the locker.", PlayerName(playerid,true));

if(GetPlayerSkin(playerid) == 163)
{
SetPlayerSkin(playerid, 164);
return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN);
}
if(GetPlayerSkin(playerid) == 164)
{
SetPlayerSkin(playerid, 285);
return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN);
}
if(GetPlayerSkin(playerid) == 285)
{
SetPlayerSkin(playerid, 163);
return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN);
}
}
}
return 1;
}

not exactly sure what the problem is, it just doesn't change clothes like it should.
Reply
#2

Add debug messages to see where the problem appears.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)