AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Global const array. (https://forums.alliedmods.net/showthread.php?t=306055)

artist 03-14-2018 05:30

Global const array.
 
PHP Code:

const char[] String:szSpawn = {"""info_player_terrorist""info_player_counterterrorist"""

Quote:

E:\Games\Counter-Strike Source\cstrike\addons\sourcemod\scripting\Unt itled_Script.sp(14) : error 001: expected token: "=", but found "["
How right?

xm3kilo 03-14-2018 05:39

Re: Global const array.
 
PHP Code:

char szSpawn[][] = {"""info_player_terrorist""info_player_counterterrorist"""}; 


artist 03-14-2018 05:45

Re: Global const array.
 
Thank you. ))


All times are GMT -4. The time now is 06:20.

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