Remove 1$=1Score
#1

hey guys.

i download gamemode awesome stunt paradise.
and in there 1$=1Score
how do i remove it?


+REP if Can Help Me

example if you havr 45K$ your score is 45K
Reply
#2

Control+F "SetPlayerScore" and Control+F "GivePlayerMoney" and show some instances where these two coexist in the same area of code.
Reply
#3

Код:
public pUpdate()
{
	new str[256], zone[MAX_ZONE_NAME];
	foreach(Player, i)
	{
		SetPlayerScore(i, GetPlayerMoney(i));
		GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
		format(str, sizeof(str), "~w~Location:~n~%s", zone);
		TextDrawSetString(Locate[i], str);
	}
	return 1;
Код:
		SetPlayerScore(playerid, GetPlayerScore(playerid) + 10);
Код:
		if(ServerInfo[AutoLog] == 1)
		{
			if((!strcmp(ip, PlayerAcc[playerid][Ip], true)) && (ServerInfo[AutoLog] == 1))
			{
	            INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've automatically successfully login to your account");
		        PlayerAcc[playerid][Log] = 1;
				return 1;
Код:
      GivePlayerMoney(playerid, -1);
    }
    else return SendClientMessage(playerid, COLOR_RED, "The Server didn't take your score, Because you don't have score");
	return 1;
Код:
GivePlayerMoney(playerid, 50);
Код:
	        GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Код:
                INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
				SetPlayerWantedLevel(playerid, PlayerAcc[playerid][WantedLvl]);
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've successfully login to your account");
		        PlayerAcc[playerid][Log] = 1;
            }
Код:
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've successfully login to your account with Security Question");
		        PlayerAcc[playerid][Log] = 1;
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
				            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've automatically successfully login to your account");
					        PlayerAcc[playerid][Log] = 1;
							return 1;
Код:
SendClientMessage(playerid, COLOR_LIME, "Thank you for accepting the Rules!");
	        SendClientMessage(playerid, COLOR_YELLOW, "You receive $1, $1 = 1 Score");
	        GivePlayerMoney(playerid, 1);
	    }
Код:
GivePlayerMoney(playerid, 100000);
Код:
		GivePlayerMoney(id, 1);
Код:
		GivePlayerMoney(id, cash);
:/
Reply
#4

No one can help me?
Reply
#5

Remove this line
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Reply
#6

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Remove this line
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Not Work.
Reply
#7

No one can help?
Reply
#8

remove this
SetPlayerScore(i, GetPlayerMoney(i));
from the public pUpdate()
Reply
#9

Replace your pUpdate() with:
pawn Код:
public pUpdate()
{
    new str[256], zone[MAX_ZONE_NAME];
    foreach(Player, i)
    {
        GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
        format(str, sizeof(str), "~w~Location:~n~%s", zone);
        TextDrawSetString(Locate[i], str);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)