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.