Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
1.ok so i buy level and i have 30/10 respect ok?i do /buylevel and the respect gets at 0.. it needs to be 20/10..
2.my radar problem is that i get caught twice at same radar..anytime its not the lag..
please help this means to much to me!!
Posts: 189
Threads: 11
Joined: Aug 2012
Reputation:
0
Please wait while I guess your code.
Posts: 554
Threads: 94
Joined: Aug 2011
Reputation:
0
how can we help you without explaining your problem clearly.
and not even codes?
please explain more and provide codes.
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
anyone help??i buy a level and then the respect points go to 0 ..
Posts: 308
Threads: 23
Joined: Jun 2012
Well I Hope This Will Help You...
1st Error;
PHP код:
CMD:buylevel(playerid, params[])
{
if (gPlayerLogged{playerid} != 0)
{
if(PlayerInfo[playerid][pLevel] >= 0)
{
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
new costlevel = nxtlevel*levelcost;
new expamount = nxtlevel*levelexp;
if(GetPlayerCash(playerid) < costlevel)
{
new string[128];
format(string, sizeof(string), "You don't have enough cash ($%d).",costlevel);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
return 1;
}
else if (PlayerInfo[playerid][pExp] < expamount)
{
new string[58];
format(string, sizeof(string), "You need %d more respect points to buy your next level.", expamount - PlayerInfo[playerid][pExp]);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
return 1;
}
else
{
new string[92];
format(string, sizeof(string), "~g~LEVEL UP~n~~w~You Are Now Level %d", nxtlevel);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GivePlayerCash(playerid, (-costlevel));
PlayerInfo[playerid][pLevel]++;
PlayerInfo[playerid][pExp] = PlayerInfo[playerid][pExp]-expamount;
PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
GameTextForPlayer(playerid, string, 5000, 1);
format(string, sizeof(string), "You have bought level %d for $%d, and gained %i upgrade points! /upgrade to use them.", nxtlevel, costlevel, PlayerInfo[playerid][gPupgrade]);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
if(PlayerInfo[playerid][pLevel] == 6)
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Newbie chat will now be automatically togged off on login.");
}
}
}
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You're not logged in.");
}
return 1;
}
2nd One I Dont Know What Are You Saying..