Raised This Month: $ Target: $400
 0% 

it appears that my function should work...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 10-03-2004 , 11:34   it appears that my function should work...
Reply With Quote #1

can any one tell me the bug(s) of my noob script. It suppose to change the varaibles you see then in a mysql database. The function is called by a menu with jobchange(id,"Bellboy", "6");. the mysql database has a job column that corresponds with an authid colum.

Code:
public jobchange(id,newjob[],sal[]){     new authid[32],query[256];     get_user_authid(id,authid,31);     format(query,255,"UPDATE money SET job=%s,WHERE steamid='%s'",newjob,authid);     mysql_query(mysql,query);     format(query,255,"UPDATE money SET salary=%s,WHERE steamid='%s'",sal,authid);     mysql_query(mysql,query);     server_cmd("amx_csay User %s's job info has been changed",authid);         return PLUGIN_HANDLED; }
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
 



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 17:21.


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