SA-MP Forums Archive
missin return error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: missin return error (/showthread.php?tid=66073)



missin return error - My_Waffles_Bitch_L0L - 19.02.2009

fixed :>


Re: missin return error - Norn - 19.02.2009

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.


Re: missin return error - My_Waffles_Bitch_L0L - 19.02.2009

ok LOL, it was [PAWN], or sumthin?


Re: missin return error - Norn - 19.02.2009

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