AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Working on TSRP Plugin (Jail Mod) (https://forums.alliedmods.net/showthread.php?t=12020)

[cTs] Strake*ROC* 04-03-2005 00:26

Working on TSRP Plugin (Jail Mod)
 
I'm trying to make it so when you arrest somebody and they disconnect and reconnect, then it makes them go to jail on connect, untill they are unarrested, here is what i have so far... but i keep getting error
Code:

error 035: argument type mismatch (argument 2)
Here is Code
Code:
/* AMX Mod X script. * * (c) 2004, Strake * This file is provided as is (no warranties). */  #include <amxmodx>  #include <amxmisc>  #include <fakemeta>  #include <engine>  #include <vault>  #include <fun>  #include <tsx> new isusercuffed[33] = 0; public plugin_init(){     register_plugin("Jail Disconnect","1.0","Strake")     register_clcmd("say", "handle_say") } public handle_say(id) { new command[101]; read_argv(1, command, 100); if(equali(command,"/cuff") == 1) {     new player     new body     get_user_aiming(id,player,body,9999);         isusercuffed[player] = 1;     } if (equali(command,"/uncuff") == 1) {     new player     new body     get_user_aiming(id,player,body,9999);         isusercuffed[player] = 0; }   } public client_connect(id) { if (isusercuffed[id] == 1) {     set_user_origin(id, ( -2705, 2206, -348 )); } }

The Line with the error is
Code:
    set_user_origin(id, ( -2705, 2206, -348 ));

I dont understand what wrong with it, i've tried making it a variable, but gives same message...

[cTs] Strake*ROC* 04-03-2005 00:27

Wow, never mind, solved it, just had to change () to {}

makes no sense to me (cuz i thought it would be ())
but it works... :-D Sorry for the spam... Admins: Feel free to delete!

Twilight Suzuka 04-03-2005 12:11

http://forums.alliedmods.net/showthread.php?t=5037

Try looking up TSXMOD. It has a phone mod built into the talkarea, and then an addon which adds a dialing sequence and telephone numbers.

[cTs] Strake*ROC* 04-03-2005 12:25

Cool, i've been looking for that one, but never could get it to work.... i'll try again... thanks man!

BTW:
This is my Jail Mod thread, my Phone Mod thread is down a bit :-D Oh well, all the same :-D

Twilight Suzuka 04-03-2005 12:30

I'm a girl, and no problem.

It needs a few modules I developed. I really should finish INV mod instead of working on new modules but...eh.

[cTs] Strake*ROC* 04-03-2005 12:38

Whoa!!! Your a girl??? But your 1337!!!!!
Cool! :-D

No offense but i always pictured you as a guy, i know NO girls that would EVER take up programming/scripting

Twilight Suzuka 04-03-2005 13:38

You don't know very many girls then....

knekter 04-03-2005 13:59

haha
 
I agree with Mel. In my AP Java class in school there are more girls then guys taking the class. There are plenty of girls who enjoy programming just as much as guys.

Marstuno 04-06-2005 21:28

Quote:

Originally Posted by [cTs
Strake*ROC*]Whoa!!! Your a girl??? But your 1337!!!!!
Cool! :-D

No offense but i always pictured you as a guy, i know NO girls that would EVER take up programming/scripting

A childs misconception.

-Marstuno Matsikame


All times are GMT -4. The time now is 10:02.

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