Help me please
#1

I got a error
Код:
 C:\Users\ddfik\Desktop\dfdf (10)\gamemodes\dfdf .pwn(42151) : error 017: undefined symbol "giveplayerid"
the command

Код:
CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88))
{
	(PlayerInfo[giveplayerid][pDonateRank] > 1)
	GivePlayerMoney(playerid, -70000000);
   }
    return 1;
}
Reply
#2

CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.8)
{
[PlayerInfo][playerid][pCrack] += 25;
GivePlayerMoney(playerid, -70000000);
}
return 1;
}
Reply
#3

You just ripped that PlayerInfo line off and want it to work.

Anyway:

pawn Код:
CMD:buygoldvip(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88))
{
    (PlayerInfo[playerid][pDonateRank] > 1) { GivePlayerMoney(playerid, -70000000); }
   }
    return 1;
}
Reply
#4

pawn Код:
CMD:buygoldvip(playerid, params[])
{
    if (IsPlayerInRangeOfPoint(playerid, 3.0, 324.09, 1119.37, 1083.88) && PlayerInfo[playerid][pDonateRank] > 1)
    {
        GivePlayerMoney(playerid, -70000000);
    }
    return 1;
}
@Spartaaaaa & DaniceMcHarley: It needs to be in an if statement, otherwise it's invalid.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)