aww.... new error record =(
#3

Код:
dcmd_curse(playerid,params[])
{
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));    
    #pragma unused params
    if(AccInfo[playerid][pVip] == 5)
	{
	    if(!strlen(params)) return
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /curse [PlayerID]") &&
		SendClientMessage(playerid, orange, "Function: Will Curse the specified player!");
		new Player1[MAX_PLAYER_NAME];
		new string[128];
		new player1;
	    player1 = strval(params);//lol where did u copy this from

	    
        if(AccInfo[player1][curse] == 0)
	    {
   			curse[playerid] = Create3DTextLabel("CURSED",0x000000AA,30.0,40.0,50.0,40.0,0);
    		Attach3DTextLabelToPlayer(curse[playerid], player1, 0.0, 0.0, 0.7);
 			GetPlayerName(playerid,Player1,sizeof(Player1));
    		format(string,sizeof(string),"Dark Lord %s has cursed &s!",playername,Player1);
        	SendClientMessageToAll(RED,string);
			AccInfo[player1][curse] = 1;
   			SetPlayerHealth(player1,1);
   			SetPlayerArmour(player1,1);
    		}
    		else
    		{
    		AccInfo[player1][curse] = 0;
    		SpawnPlayer(player1);
    		Delete3DTextLabel(curse[playerid]);
    		new string[44];
    		GetPlayerName(playerid, Player1, sizeof(Player1));
    		format(string, sizeof(string), "Dark Lord %s has released %s!",playername,Player1);
        	SendClientMessageToAll(RED,string);
		}
		return 1;
    }
	else return ErrorMessages(playerid, 21);
}
try this
Reply


Messages In This Thread
aww.... new error record =( - by HardstylerNiko - 16.08.2010, 23:25
Re: aww.... new error record =( - by [XST]O_x - 16.08.2010, 23:28
Re: aww.... new error record =( - by akis_tze - 16.08.2010, 23:28
Re: aww.... new error record =( - by HardstylerNiko - 17.08.2010, 00:03

Forum Jump:


Users browsing this thread: 3 Guest(s)