Zcmd /get - 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: Zcmd /get (
/showthread.php?tid=246290)
Zcmd /get -
Alex_Obando - 03.04.2011
http://forum.sa-mp.com/showthread.ph...60#post1151360
Re: Zcmd /get -
Mean - 03.04.2011
1.
pawn Код:
CMD:get( playerid, params[ ] ) {
new id = strval( params );
if( !isnull( params ) ) return SendClientMessage( playerid, 0xAAAAAA, "USAGE: /get [ID]" );
if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xAAAAAA, "Invalid ID" );
new Float:x, Float:y, Float:z; GetPlayerPos( playerid, x, y, z ); return SetPlayerPos( id, x, y, z );
}
2.
wiki.sa-mp.com/wiki/GameTextForPlayer
Respuesta: Zcmd /get -
Alex_Obando - 03.04.2011
How I can do this:
I have a report system which opens a dialog box, if I add at the last GetPlayer it'll be the case 8, So If I Press it get the player to me:
pawn Код:
case 8:
{
new Float:x, Float:y, Float:z; GetPlayerPos( playerid, x, y, z ); return SetPlayerPos( id, x, y, z );
}
pawn Код:
../include/admincommands.inc.pwn(915) : error 017: undefined symbol "id"
../include/admincommands.inc.pwn(958) : error 017: undefined symbol "params"