missin return error
#1

fixed :>
Reply
#2

pawn Код:
dcmd_explode(playerid,params[]) {
    if(PlayerInfo[playerid][LoggedIn] == 1) {
        if(PlayerInfo[playerid][Level] >= 3) {
          new tmp[256], tmp2[256], Index;       tmp = strtok(params,Index), tmp2 = strtok(params,Index);
          if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /explode [PLAYER NAME/ID] [REASON]");
        new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
            player1 = strval(tmp);

            if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
                GetPlayerName(player1, playername, sizeof(playername));     GetPlayerName(playerid, adminname, sizeof(adminname));
                new Float:burnx, Float:burny, Float:burnz; GetPlayerPos(player1,burnx, burny, burnz); CreateExplosion(burnx, burny , burnz, 7,10.0);
        if(strlen(tmp2)) {
                    format(string,sizeof(string),"Admin %s has exploded %s. (Reason: %s)",adminname,playername,params[2]); return SendClientMessageToAll(COLOR_YELLOW,string); }
       } else return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Invalid Player Name/ID");
        } else return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
    } else return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
return 1;
}
Use pawn tags in your posts, it's easier , also you can use the same thread over again you know, just change the subject titles. Saves people thinking your spamming.
Reply
#3

ok LOL, it was [PAWN], or sumthin?
Reply
#4

Quote:
Originally Posted by hctiB_selffaW_yM
ok LOL, it was [PAWN], or sumthin?
Yeh, most people don't use it but when they do it's easier for the eyes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)