SA-MP Forums Archive
[Help] No errors, just doesn't work... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] No errors, just doesn't work... (/showthread.php?tid=88826)



[Help] No errors, just doesn't work... - Shots - 29.07.2009

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.


Re: [Help] No errors, just doesn't work... - Correlli - 29.07.2009

Add debug messages to see where the problem appears.