warning 215: expression has no effect
#1

hmm here the code

pawn Код:
CMD:needrank(playerid,params[])
{
#pragma unused params
GivePlayerRankScore(playerid,20);//after i remove this, i didn't get any error
return 1;
}

stock GivePlayerRankScore(playerid,amount)
{
PlayerInfo[playerid][pRankScore] +amount;//error line
}
gelp pls
Reply
#2

pawn Код:
[PlayerInfo[playerid][pRankScore] = amount;
Try that.
Reply
#3

PlayerInfo[playerid][pRankScore] = PlayerInfo[playerid][pRankScore]+amount;
Reply
#4

with one ?
Reply
#5

Try adding the stock above the CMD (if it's like that in your gamemode), also what is the #pragma unused params for?
Reply
#6

pawn Код:
stock GivePlayerRankScore(playerid,amount)
{
    PlayerInfo[playerid][pRankScore] += amount;
}
Reply
#7

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
pawn Код:
[PlayerInfo[playerid][pRankScore] = amount;
Try that.
this is SetPlayerRankScore not GivePlayerRankScore anyway tnx to HurtLocker
Reply
#8

help, why i used

stock GivePlayerRankScore(playerid,amount)
{
PlayerInfo[playerid][pRankScore] = PlayerInfo[playerid][pRankScore]+amount;
}

it SetPlayerRankScore not GivePlayerRankScore

help pls
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)