Raised This Month: $ Target: $400
 0% 

string format error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sonic7145
Member
Join Date: Jul 2005
Location: USA
Old 12-30-2005 , 00:36   string format error
Reply With Quote #1

pruned

Last edited by Sonic7145; 08-09-2021 at 04:11.
Sonic7145 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-30-2005 , 00:56  
Reply With Quote #2

Didn't comment it much, but try this:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "AMX Lollerskates" #define VERSION "1.0" #define AUTHOR "Sonic" public plugin_init() {          register_plugin(PLUGIN, VERSION, AUTHOR)      register_concmd("amx_skate", "start_skate", ADMIN_SLAY, "<player>  admin gives some lollerskates.")      register_concmd("amx_unskate", "end_skate", ADMIN_SLAY, "<player>  admin takes away lollerskates.")      register_event("CurWeapon", "check_speed", "be") // register the CurWeapon event } #define MAX_SPEED 500.0 new bool:g_bSkating[33] public client_connect(id)   g_bSkating[id] = false public client_disconnect(id)   g_bSkating[id] = false public check_speed(id) {   if(g_bSkating[id])     set_user_maxspeed(id, MAX_SPEED) } public start_skate(id,level,cid){   // Use cmd_access   if (!cmd_access(id,level,cid,2))     return PLUGIN_HANDLED   new user[32], uid       read_argv(1,user,32)   uid = cmd_target(id,user,0) // use cmd_target   if (!is_user_connected(uid))     return PLUGIN_HANDLED   // You need to get the name, too.   new name[33]   get_user_name(uid,name,32)     set_user_maxspeed(uid,MAX_SPEED)   console_print(id,"[AMXX] You've given %s some skates!",name)   console_print(uid,"[AMXX] You have been given skates!")   return PLUGIN_HANDLED } public end_skate(id,level,cid){   if (!cmd_access(id,level,cid,2))     return PLUGIN_HANDLED   new user[32], uid       read_argv(1,user,32)   uid = cmd_target(id,user,0)   if (!is_user_connected(uid))     return PLUGIN_HANDLED     set_user_maxspeed(uid,0.0)   new name[33]   get_user_name(uid,name,32);   console_print(id,"[AMXX] You've taken away skates from %s!",name)   console_print(uid,"[AMXX] You have lost your skates!")   return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-30-2005 , 00:58  
Reply With Quote #3

Code:
L 12/29/2005 - 21:31:41: String formatted incorrectly - parameter 3 (total 2)

Where the rest of the log there should be a few extra line with that. The line before and after what you posted.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Old 12-30-2005, 01:01
Sonic7145
This message has been deleted by Sonic7145.
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-30-2005 , 01:08  
Reply With Quote #4

Try out my version. If it still has the string format error, enable debug on the plugin.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Old 12-30-2005, 01:19
Sonic7145
This message has been deleted by Sonic7145.
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-30-2005 , 01:37  
Reply With Quote #5

Doh.. Try this:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "AMX Lollerskates" #define VERSION "1.0" #define AUTHOR "Sonic" public plugin_init() {          register_plugin(PLUGIN, VERSION, AUTHOR)      register_concmd("amx_skate", "start_skate", ADMIN_SLAY, "<player>  admin gives some lollerskates.")      register_concmd("amx_unskate", "end_skate", ADMIN_SLAY, "<player>  admin takes away lollerskates.")      register_event("CurWeapon", "check_speed", "be") // register the CurWeapon event      set_cvar_num("sv_maxspeed", 999); } #define MAX_SPEED 999.0 new bool:g_bSkating[33] public client_connect(id)   g_bSkating[id] = false public client_disconnect(id)   g_bSkating[id] = false public check_speed(id) {   if(g_bSkating[id])     set_user_maxspeed(id, MAX_SPEED) } public start_skate(id,level,cid){   // Use cmd_access   if (!cmd_access(id,level,cid,2))     return PLUGIN_HANDLED   new user[32], uid       read_argv(1,user,32)   uid = cmd_target(id,user,0) // use cmd_target   if (!is_user_connected(uid))     return PLUGIN_HANDLED   // You need to get the name, too.   new name[33]   get_user_name(uid,name,32)     set_user_maxspeed(uid,MAX_SPEED)   console_print(id,"[AMXX] You've given %s some skates!",name)   console_print(uid,"[AMXX] You have been given skates!")   g_bSkating[uid] = true   return PLUGIN_HANDLED } public end_skate(id,level,cid){   if (!cmd_access(id,level,cid,2))     return PLUGIN_HANDLED   new user[32], uid       read_argv(1,user,32)   uid = cmd_target(id,user,0)   if (!is_user_connected(uid))     return PLUGIN_HANDLED     set_user_maxspeed(uid,0.0)   new name[33]   get_user_name(uid,name,32);   console_print(id,"[AMXX] You've taken away skates from %s!",name)   console_print(uid,"[AMXX] You have lost your skates!")   g_bSkating[uid] = false   return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Old 12-30-2005, 01:56
Sonic7145
This message has been deleted by Sonic7145.
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-30-2005 , 15:59  
Reply With Quote #6

Use my edited version.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Old 12-30-2005, 16:21
Sonic7145
This message has been deleted by Sonic7145.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode