Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- public OnPluginStart()
- {
- RegConsoleCmd("sm_explode", Explode);
- }
- public Action:Explode(client, args)
- {
- decl String:Entire_String[32] = "1,2,3,4";
- decl String:Pieces_Of_String[32][4];
- if (client)
- {
- ExplodeString(Entire_String, ",", Pieces_Of_String, sizeof(Pieces_Of_String), sizeof(Pieces_Of_String[]), false);
- PrintToChat(client, "Color 1: %s", Pieces_Of_String[0]); //
- PrintToChat(client, "Color 2: %s", Pieces_Of_String[1]); //
- PrintToChat(client, "Color 3: %s", Pieces_Of_String[2]); //
- PrintToChat(client, "Color 4: %s", Pieces_Of_String[3]); //
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement