spec textdraw shows my own info
#5

Quote:
Originally Posted by GwENiko
Посмотреть сообщение
The code is there, i just didnt show it because i don't think it is necessary.

pawn Код:
CMD:spec(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}Error: You are not allowed to use this.");
    new id;
    if(sscanf(params, "d", id)) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}Usage: /spec <ID>.");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}That player is not connected!");
All i wonder is why is it getting my information on the textdraw and not the player being specced.
forward AdminSpectate(id);
Public AdminSpectate(id)

And remove new id;

Guess that'll work
Reply


Messages In This Thread
spec textdraw shows my own info - by GwENiko - 14.06.2014, 21:00
Re: spec textdraw shows my own info - by GwENiko - 15.06.2014, 00:45
Re: spec textdraw shows my own info - by Laure - 15.06.2014, 00:52
Re: spec textdraw shows my own info - by GwENiko - 15.06.2014, 01:49
Re: spec textdraw shows my own info - by DavidBilla - 15.06.2014, 02:03
Re: spec textdraw shows my own info - by AiRaLoKa - 15.06.2014, 02:32
Re: spec textdraw shows my own info - by Threshold - 15.06.2014, 05:09

Forum Jump:


Users browsing this thread: 2 Guest(s)