How come, when you register a fake native, it doesn't pass a string through correctly?
Inc. - Registered INC file
Code:
native remorp_server_changelocks(id,targetname[]);
BuyMod - Plugin sending the command
The string is formatted correctly, so I know it is not the formatting.
Code:
remorp_server_changelocks(id,targetname)
KeyMod -
Code:
public plugin_natives()
{
register_library ( "RemoRPKeyMod" )
register_native("remorp_server_changelocks","server_changelocks",1)
}
public server_changelocks(id,targetname[]) {
client_print(0,print_chat,"%s",targetname)
new targetname = param_convert(2)
client_print(0,print_chat,"%i",targetname)
The problem is
The first print chat on the changelocks command prints:
;
Then the second one prints
1
How can I fix this, if possible? Thanks.
__________________