Help! with string number -
[MKD]Max - 01.10.2010
CMD:ajail(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
else
{
new otherId;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new string[256];
if(sscanf(params, "u", otherId)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /ajail [PlayerID/PartOfName] [Time(minutes)] [Reason]");
format(string, sizeof(string), "* You Jailed %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
if(otherId == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAFAFAFAA, "Invalid Player ID");
{
new Float
, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid,1769.37341309,178.79183960,1 369.28161621);
format(string, sizeof(string), "* You been Admin jailed by Admin %s ", sendername );
SendClientMessage(playerid, 0xFF4646FF, string);
}
}
return 1;
}
Now I Got Problem With THats Work Say
new string[256] <--- is all commands like this string or another string thats what i need help with him
Re: Help! with string number -
Finn - 01.10.2010
pawn Code:
CMD:ajail(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
new otherid;
if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /ajail [PlayerID/PartOfName] [Time(minutes)] [Reason]");
if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAFAFAFAA, "Invalid Player ID");
SetPlayerPos(otherid, 1769.37341309, 178.79183960, 1369.28161621);
new name[MAX_PLAYER_NAME], string[64];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* You been Admin jailed by Admin %s.", name);
SendClientMessage(otherid, 0xFF4646FF, string);
GetPlayerName(otherid, name, sizeof(name));
format(string, sizeof(string), "* You Jailed %s.", name);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
Re: Help! with string number -
[MKD]Max - 01.10.2010
Quote:
Originally Posted by Finn
pawn Code:
CMD:ajail(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
new otherid; if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /ajail [PlayerID/PartOfName] [Time(minutes)] [Reason]"); if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAFAFAFAA, "Invalid Player ID");
SetPlayerPos(otherid, 1769.37341309, 178.79183960, 1369.28161621);
new name[MAX_PLAYER_NAME], string[64];
GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* You been Admin jailed by Admin %s.", name); SendClientMessage(otherid, 0xFF4646FF, string);
GetPlayerName(otherid, name, sizeof(name)); format(string, sizeof(string), "* You Jailed %s.", name); SendClientMessage(playerid, COLOR_LIGHTRED, string); return 1; }
|
i know but i was ask can you do without string number