Quote:
Originally Posted by Konstantinos
Correct, I forgot it! Although, GetPlayerInterior and GetPlayerVirtualWorld return the interior/world id - they're not stored by reference.
pawn Код:
CMD:get( playerid, params[ ] ) { if( !IsPlayerAdmin( playerid ) ) return 1; new id ; if( sscanf( params, "r", id ) ) return SendClientMessage( playerid, -1, "Usage: /get <ID/Part Of Name>" ); if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Offline player" ); new Float: xx, Float: yy, Float: zz ; GetPlayerPos( playerid, xx, yy, zz );
if( IsPlayerInAnyVehicle( id ) ) RemovePlayerFromVehicle( id ); SetPlayerInterior( id, GetPlayerInterior( playerid ) ); SetPlayerPos( id, xx, yy, zz ); SetPlayerVirtualWorld( id, GetPlayerVirtualWorld( playerid ) ); return 1; }
|
I got this error :
Код:
C:\Users\HP\Desktop\SA-MP Servers\New folder\BTRP\gamemodes\get command.pwn(1) : warning 203: symbol is never used: "get"
C:\Users\HP\Desktop\SA-MP Servers\New folder\BTRP\gamemodes\get command.pwn(1 -- 23) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I want to make it in a FS .