Raised This Month: $ Target: $400
 0% 

[SMA] Get url Contained


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DeVe
Member
Join Date: Jul 2014
Old 07-17-2014 , 06:36   [SMA] Get url Contained
Reply With Quote #1

Hi Alliedmods team, Users

I know php lang but amxx will get me hard to complete some of my project.

I try to explain you whit my words and my idea .

#include <amxmodx>
#include <amxmisc>

new postCvar[64]
new const urlGET[ ] = "http://domain.ro/geturl.php?download="
new const geturl = urlGET + postCvar

public plugin_init()
{
register_plugin(PLUGIN_NAME, VERSION, AUTHOR)
postCvar = register_cvar("postcvar","1")
Verify_Cvar();
}
public Verify_Cvar()
{
if(geturl == 1)
{
console_print ("Cvarul inregistrat este valid);
}
else
{
console_print ("Cvar inregistrat nu este valid");
}
}

So here is my request to be make.

I want a plugin to auth whit my link.

Now first I want to register a cvar on amxx.cfg
Next I want this cvar to add whit new const urlGET[ ] = "http://domain.ro/geturl.php?download="

and I will get

http://domain.ro/geturl.php?download=cvar

If in amxx.cfg will put
postcvar "alliedmods"

the url will be http://domain.ro/geturl.php?download=alliedmods

Now When the urlGET + postcvar will get contained 1 will be TRUE if will be 0 will be FALSE !

Thank you and I hope you to understand.

I know only php and it`s new for me and I want to learn .
DeVe is offline
 


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


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