//level system CMD:buylevel(playerid, params[]) { GivePlayerMoney(playerid, -1000); SetPlayerScore(playerid, 1); return 1; } line 334 >>if(GetPlayerScore(playerid)> 50) { CMD:godon(playerid, params[]) { SetPlayerHealth(playerid, 99999) ; }
C:\Users\Modris\Desktop\Project\gamemodes\stuntcapital.pwn(334) : error 010: invalid function or declaration
//level system
CMD:buylevel(playerid, params[])
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid, -1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
return true;
}
CMD:godon(playerid, params[])
{
if(GetPlayerScore(playerid) > 50)
{
SetPlayerHealth(playerid, 99999.9);
}
return true;
}
It doesnt show the error code any more but now In Game the /buylevel command doesnt work it just doesnt do anything doesnt even show SERVER:Unknown Command
|
CMD:buylevel(playerid, params[])
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid, -1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
return SendClientMessage(playerid, -1, "You reached a new level");
}
return SendClientMessage(playerid, -1, "You don't have enough money (>= 1000$)");
}