Raised This Month: $ Target: $400
 0% 

Need help with my first script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kuidao
Junior Member
Join Date: May 2006
Old 05-05-2006 , 03:01   Need help with my first script
Reply With Quote #1

Hi everybody, It's my first script, so don't call me n00b (I'm a n00b, as you can see, but don't tell me)

Code:
--------------------------------------------------------------------------------- /* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <dbi> #include <tsx> #include <engine> #include <engine_stocks> #include <fun> #include <tsxaddon> #define PLUGIN "Matrix Phone" #define VERSION "1.0" #define AUTHOR "Kuidao Ketemeto" public plugin_init() {     register_plugin("Matrix Phone", "1.0", "Kuidao Ketemeto")         register_srvcmd("item_mphone","item_mphone")         // Add your code here... } // Precaching some stuff public plugin_precache() {     precache_sound("items/kuidao/teleport.wav") } //////////////////////////////////// //      ITEM /////////////////////////////////// // The Matrix Phone public item_mphone(id) {   new origin[3]   new authid[32]         get_user_authid(id,authid,31)     get_user_origin(id,origin)     origin[0] = -326 // X coordinates     origin[1] = 152 // Y coordinates     origin[2] = -25 // Z coordinates     set_user_origin(id,origin)   // Moves the player to the location stored in origin     client_cmd(id,"speak ^"items/kuidao/teleport^"")     return PLUGIN_HANDLED } -----------------------------------------------------------------------------------

When I compile it, I have 2 warnings in files 41 and 47...

It's a TSRP plugin, workin with Harbu's.
When I use that item in the server, it plays the sound, but doesn't teleport me, in the server console I can see this:

-----------------------------------------------
L 05/05/2006 - 07:56:22: [AMXX] Native error in "get_user_origin" on line 42 (file "matrix_phone.sma").
-----------------------------------------------

Please help me


(I'm Spanish, sorry my english)
kuidao is offline
Send a message via AIM to kuidao
 


Thread Tools
Display Modes

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 05:05.


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