Raised This Month: $51 Target: $400
 12% 

My Plugin Problem???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
controlsuz123
Member
Join Date: Nov 2009
Old 04-22-2016 , 19:16   My Plugin Problem???
Reply With Quote #1

Hi,
I need help!!! I received error here!

/home/groups/sourcemod/upload_tmp/phphvcqub.sp(33) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(39) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(45) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(51) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(57) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(63) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(69) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(75) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(81) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(87) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(93) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(99) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(105) : error 037: invalid string (possibly non-terminated string)
/home/groups/sourcemod/upload_tmp/phphvcqub.sp(111) : error 037: invalid string (possibly non-terminated string)

SP =

PHP Code:
#include <sourcemod>


public Plugin:myinfo 
{
    
name "[CSGO] MAP",
    
author "WASP MAP",
    
description "Map Command",
    
version "1.0"
}

public 
OnPluginStart()
{
    
RegAdminCmd("sm_d2"Command_d2ADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_dust2"Command_de_dust2ADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_inf"Command_de_infernoADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_inferno"Command_de_infernoADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_nuke"Command_nukeADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_nuke"Command_de_nukeADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_cbble"Command_cbbleADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_cbble"Command_de_cbbleADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_mirage"Command_mirageADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_mirage"Command_de_mirageADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_cache"Command_cacheADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_cache"Command_de_cacheADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_train"Command_trainADMFLAG_CHANGEMAP"Change Map.")
    
RegAdminCmd("sm_de_train"Command_de_trainADMFLAG_CHANGEMAP"Change Map.")
}


public 
Action:Command_d2(clientargs)
{
    
ServerCommand("map de_dust2);
}


public Action:Command_de_dust2(client, args)
{
    ServerCommand("
map de_dust2);
}


public 
Action:Command_inf(clientargs)
{
    
ServerCommand("map de_inferno);
}


public Action:Command_de_inferno(client, args)
{
    ServerCommand("
map de_inferno);
}


public 
Action:Command_nuke(clientargs)
{
    
ServerCommand("map de_nuke);
}


public Action:Command_de_nuke(client, args)
{
    ServerCommand("
map de_nuke);
}


public 
Action:Command_cbble(clientargs)
{
    
ServerCommand("map de_cbble);
}


public Action:Command_de_cbble(client, args)
{
    ServerCommand("
map de_cbble);
}


public 
Action:Command_mirage(clientargs)
{
    
ServerCommand("map de_mirage);
}


public Action:Command_de_mirage(client, args)
{
    ServerCommand("
map de_mirage);
}


public 
Action:Command_cache(clientargs)
{
    
ServerCommand("map de_cache);
}


public Action:Command_de_cache(client, args)
{
    ServerCommand("
map de_cache);
}


public 
Action:Command_train(clientargs)
{
    
ServerCommand("map de_train);
}


public Action:Command_de_train(client, args)
{
    ServerCommand("
map de_train);

Thank you for helping me.

Last edited by controlsuz123; 04-22-2016 at 19:18.
controlsuz123 is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 04-22-2016 , 19:17   Re: My Plugin Problem???
Reply With Quote #2

You are missing Quotes ( " ) at the End of every ServerCommand

it should be

Code:
ServerCommand("map de_train");
also:
Why don't you just use
Code:
sm_map de_train
?!
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 04-22-2016 at 19:18.
Totenfluch is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-22-2016 , 19:21   Re: My Plugin Problem???
Reply With Quote #3

Some big lols here.
__________________
Neuro Toxin is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 04-22-2016 , 19:26   Re: My Plugin Problem???
Reply With Quote #4

Quote:
Originally Posted by Neuro Toxin View Post
Some big lols here.
Some people, no words left
__________________
xines is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-22-2016 , 19:30   Re: My Plugin Problem???
Reply With Quote #5

his learning
give him a break
__________________
8guawong is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-22-2016 , 20:07   Re: My Plugin Problem???
Reply With Quote #6

Ill be good
__________________
Neuro Toxin is offline
controlsuz123
Member
Join Date: Nov 2009
Old 04-22-2016 , 20:18   Re: My Plugin Problem???
Reply With Quote #7

ServerCommand("map de_train"); change sm_map but the problem continues.
controlsuz123 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-22-2016 , 22:00   Re: My Plugin Problem???
Reply With Quote #8

Why not just use the ForceChangeLevel command?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
AZzeL
New Member
Join Date: Apr 2013
Location: Romania
Old 04-23-2016 , 17:40   Re: My Plugin Problem???
Reply With Quote #9

Code:
    ServerCommand("map de_dust2);
in
Code:
    ServerCommand("changelevel de_dust2");
__________________
AZzeL is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-23-2016 , 17:55   Re: My Plugin Problem???
Reply With Quote #10

Why not something like this?
PHP Code:
#include <sourcemod>


public Plugin:myinfo 
{
    
name "[CSGO] MAP",
    
author "WASP MAP",
    
description "Map Command",
    
version "1.0"
}

public 
OnPluginStart()
{
    
RegAdminCmd("sm_d2",         Command_d2,     ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_dust2",   Command_d2,     ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_inf",        Command_inf,    ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_inferno"Command_inf,    ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_nuke",       Command_nuke,   ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_nuke",    Command_nuke,   ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_cbble",      Command_cbble,  ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_cbble",   Command_cbble,  ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_mirage",     Command_mirageADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_mirage",  Command_mirageADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_cache",      Command_cache,  ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_cache",   Command_cache,  ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_train",      Command_train,  ADMFLAG_CHANGEMAP"Change Map.");
    
RegAdminCmd("sm_de_train",   Command_train,  ADMFLAG_CHANGEMAP"Change Map.");
}

ChangeMap(const String:map[])
{
    
ForceChangeLevel(map"");
}

public 
Action:Command_d2(clientargs)
{
    
ChangeMap("de_dust2");
}

public 
Action:Command_inf(clientargs)
{
    
ChangeMap("de_inferno");
}

public 
Action:Command_nuke(clientargs)
{
    
ChangeMap("de_nuke");
}

public 
Action:Command_cbble(clientargs)
{
    
ChangeMap("de_cbble");
}

public 
Action:Command_mirage(clientargs)
{
    
ChangeMap("de_mirage");
}

public 
Action:Command_cache(clientargs)
{
    
ChangeMap("de_cache");
}

public 
Action:Command_train(clientargs)
{
    
ChangeMap("de_train");

__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
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 08:18.


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