someproblem with the command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: someproblem with the command (
/showthread.php?tid=89837)
someproblem with the command -
nuriel8833 - 04.08.2009
I have this command:
pawn Код:
if(strcmp(cmd, "/savanna", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5) return DenyMessage(playerid, 5);
new pastname;
pastname = GetPlayerName(playerid)
SendClientMessage(playerid, COLOR_WHITE, "%s<--дсееъд аъ щок бдцмзд! щок дзгщ деа",pastname);
SetPlayerName(playerid, Names[random(11)]);
return 1;
}
how can i do that if my name is bla and i did the command (/savanna) it will change my name to dgfdsfsafd
how can i do a command that returns the player name (from dgfdsfsafd to bla)
tanks for helpers
Re: someproblem with the command -
silvan - 04.08.2009
check the " Names[random(11)]); " i think it is in that
Re: someproblem with the command -
nuriel8833 - 04.08.2009
Quote:
Originally Posted by silvan
check the " Names[random(11)]); " i think it is in that
|
what

??
explain more
Re: someproblem with the command -
nuriel8833 - 05.08.2009
Umm yea 5th page+12 hours
please help me!!!!!!!!!!!!!!!!!!!1
Re: someproblem with the command -
Joe Staff - 05.08.2009
You have to use format to use '%s' as an escape code, then use SendClientMessage for the formatted string. You are using GetPlayerName incorrectly and the variable you created for it has to be indexed (one cell per character + 1)
Re: someproblem with the command -
Typhome - 05.08.2009
///// -------- DELETE POST -.-
Re: someproblem with the command -
nuriel8833 - 05.08.2009
Quote:
Originally Posted by Joe Staff
You have to use format to use '%s' as an escape code, then use SendClientMessage for the formatted string. You are using GetPlayerName incorrectly and the variable you created for it has to be indexed (one cell per character + 1)
|
WTF Did you say?
just make me the code please
Re: someproblem with the command -
Woet - 05.08.2009
http://forum.sa-mp.com/index.php?topic=114903.0
Re: someproblem with the command -
nuriel8833 - 05.08.2009
I Just want to know how to set the dini file to:
%d X Y Z A
%d num of position
Re: someproblem with the command -
silvan - 18.08.2009
check the callback of " SetPlayerName(playerid,Newname); "