Got some warnings
#1

PHP код:
CMD:levelup(playeridparams[])
{
    if(
PlayerInfo[playerid][pLevel] >= 0)
    {
        new 
nxtlevel PlayerInfo[playerid][pLevel]+1;
        new 
expamount nxtlevel*levelexp;
        new 
infostring[128];
    if (
PlayerInfo[playerid][pExp] < expamount)
    {
        
format(infostring128"[D-RP]: {FFFFFF}You need %d Experience Points, you currently have [%d] !",expamount,PlayerInfo[playerid][pExp]);
        
SendClientMessage(playeridCOLOR_LIGHTREDinfostring);
        return 
1;
    }
    else
    {
         new 
string[128];
        
format(stringsizeof(string), "~b~LEVEL UP~n~~w~You Are Now Level %d"PlayerInfo[playerid][pLevel]);
        
PlayerInfo[playerid][pLevel]++;
    }
    return 
1;
    }

Here are the warnings


Код:
C:\Users\Bart\Downloads\Script\Downtown Roleplay Development\LSC-RP\gamemodes\drp.pwn(1880) : warning 217: loose indentation
C:\Users\Bart\Downloads\Script\Downtown Roleplay Development\LSC-RP\gamemodes\drp.pwn(1894) : warning 209: function "cmd_levelup" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply


Messages In This Thread
Got some warnings - by ImprezBart - 31.10.2011, 07:23
Re: Got some warnings - by Stigg - 31.10.2011, 07:42
Re: Got some warnings - by [MG]Dimi - 31.10.2011, 07:42
Re: Got some warnings - by ImprezBart - 31.10.2011, 07:45
Re: Got some warnings - by Stigg - 31.10.2011, 07:48
Re: Got some warnings - by ImprezBart - 31.10.2011, 07:49

Forum Jump:


Users browsing this thread: 2 Guest(s)