Please Help
#9

Instead of using format() and TextDrawTextString in 5000 different teleports, you should create a stock function for it.

pawn Код:
stock ShowTeleTD(playerid, tele[])
{
    new szTDstring[64];
    GetPlayerName(playerid, szTDstring, sizeof(szTDstring));
    format(szTDstring, sizeof(szTDstring), "%s teleported to %s", pName, tele);
    TextDrawSetString(textid, szTDstring);
    return 1;
}
Then in your commands, simply put 'ShowTeleTD(playerid, "/AA");' or whatever.
Reply


Messages In This Thread
Please Help - by Pankaj - 18.04.2012, 05:26
Re: Please Help - by Jstylezzz - 18.04.2012, 05:37
Re: Please Help - by Pankaj - 18.04.2012, 08:03
Re: Please Help - by Jstylezzz - 18.04.2012, 13:03
Re: Please Help - by Pankaj - 18.04.2012, 16:33
Re: Please Help - by Jstylezzz - 18.04.2012, 17:10
Re: Please Help - by Pankaj - 19.04.2012, 04:17
Re: Please Help - by Pankaj - 19.04.2012, 05:48
Re: Please Help - by MP2 - 19.04.2012, 06:48

Forum Jump:


Users browsing this thread: 3 Guest(s)