Help please :)[REP]
#8

pawn Код:
CMD:lsa(playerid, params[])
{
    new Player[MAX_PLAYER_NAME+1],strtemp[128];
    SetPlayerPos(playerid,1706.821045, -2466.476807, 13.554688);
    GameTextForPlayer(playerid, "~r~LSA", 3000, 6);
    format(strtemp,sizeof(strtemp),"%s has teleported to {F5FF00}/LSA", Player);
    SendClientMessageToAll(blue,strtemp);
    return 1;
}
Those are local variables that do not and should not exceed the local scope of the command , making them global can cause a lot of issues, Please delete wherever you added them to, and add them into the command as I have shown above. I've also increased the size of MAX_PLAYERNAME to MAX_PLAYERNAME+1 because the wiki informed me that the define for MAX_PLAYERNAME does not include the terminating char, causing max character playername to be one letter short.
Reply


Messages In This Thread
Help please :)[REP] - by Excelize - 23.01.2014, 03:35
Re: Help please :)[REP] - by Hoborific - 23.01.2014, 03:46
Re: Help please :)[REP] - by Excelize - 23.01.2014, 03:49
Re: Help please :)[REP] - by Hoborific - 23.01.2014, 03:51
Re: Help please :)[REP] - by Excelize - 23.01.2014, 03:58
Re: Help please :)[REP] - by Hoborific - 23.01.2014, 04:03
Re: Help please :)[REP] - by Excelize - 23.01.2014, 04:04
Re: Help please :)[REP] - by Hoborific - 23.01.2014, 04:08
Re: Help please :)[REP] - by Excelize - 23.01.2014, 04:16
Re: Help please :)[REP] - by J4mmyHD - 23.01.2014, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)