stock giveplayerscore
#1

hello, sorry if this is completely wrong i was taking a wild guess and im a noob at scripting still

pawn Код:
stock givescore(playerid, ammount)
{
    new currentscore;
    currentscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid, currentscore++ammount);
}
ive done something wrong lol but as i guessed i have no clue what

EDIT: nvm i think i got it
Reply
#2

pawn Код:
givescore(playerid, ammount) SetPlayerScore(playerid, GetPlayerScore(playerid)+ammount);
Reply
#3

near enough

pawn Код:
stock givescore(playerid, ammount)
{
    new currentscore;
    currentscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid, currentscore + ammount);
}
still works though DDD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)