11.03.2012, 17:04
ok so my problem is i cant seem to fix my score update its doing it for cash update on score and not kill score i have tryed changeing it to KillScore but that dont seem 2 work now secound problem is when i change the playercamerapos to change background all i get is a blank screen with no class selection im not sure what it is but if needed i can show you guys this code i have....
1:new KillScoreOld;
2ublic EuGScoreUpdate()
{
new KillScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
KillScore = GetPlayerMoney(i);
SetPlayerScore(i, KillScore);
if (KillScore > KillScoreOld)
{
KillScoreOld = KillScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}
3: SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1003.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
new rand = random(sizeof(RandAnims));
ApplyAnimation(playerid,"DANCING",RandAnims[rand][0],4.0,1,1,1,1,1);
}
not sure if you guys need more if so please let me know thanks
1:new KillScoreOld;
2ublic EuGScoreUpdate()
{
new KillScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
KillScore = GetPlayerMoney(i);
SetPlayerScore(i, KillScore);
if (KillScore > KillScoreOld)
{
KillScoreOld = KillScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}
3: SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1003.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
new rand = random(sizeof(RandAnims));
ApplyAnimation(playerid,"DANCING",RandAnims[rand][0],4.0,1,1,1,1,1);
}
not sure if you guys need more if so please let me know thanks