19.03.2012, 11:25
Hello.
First problem:
Player Name: Lussy_More
Command typed: /get lus
Returned: Player isnt online.
Second problem:
Typed command: /toall hello!
Returned: h
Thanks!
First problem:
Code:
CMD:get(playerid, params[])
{
if(sscanf(params, "u", player))
{
ShadInfoBoxForPlayer(playerid, "/get [who?]");
return 1;
}
if(IsPlayerConnected(player))
{
ShadInfoBoxForPlayer(playerid, "Player isnt online");
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(player, x, y, z);
return 1;
}
Command typed: /get lus
Returned: Player isnt online.
Second problem:
Code:
CMD:toall(playerid, params[])
{
if(sscanf(params, "c[50]", text))
{
ShadInfoBoxForPlayer(playerid, "/toall [text]");
return 1;
}
SendClientMessageToAll(RED, text);
return 1;
}
Returned: h
Thanks!

