SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 31/05/2015, 01:09 PM   #1
Join Date: Nov 2014
Location: Cairo, Egypt
Posts: 681
Reputation: 26
Default Mysql Explode Function

What is this xD
PHP Code:
explode(const sSource[], aExplode[][], const sDelimiter[] = " "iVertices sizeof aExplodeiLength sizeof aExplode[]) // Created by Westie
iPrevious = -1,
iDelimiter strlen(sDelimiter);

iNode iVertices)
iPointer strfind(sSourcesDelimiterfalseiPointer);

iPointer == -1)
strmid(aExplode[iNode], sSourceiPreviousstrlen(sSource), iLength);
strmid(aExplode[iNode], sSourceiPreviousiPointeriLength);

iPrevious = (iPointer += iDelimiter);

Originally Posted by Human
When im met u, u were nub at scripting xD.

But now, i'm impressed. Good job.
Don't look at my history. Everyone started somewhere
nezo2001 is offline   Reply With Quote
Old 31/05/2015, 06:53 PM   #2
dusk's Avatar
Join Date: Jul 2008
Posts: 1,114
Reputation: 46
Default Re: Mysql Explode Function

First of all, this has nothing to do with 0.3.7.

This function splits a string by another string. For example if you have a string:
string = "Hey, this is a string"

And use that function on it like so:
new output[6][16];
explode(string, output, " ");

Will result in the array "output" values being:
for(new i = 0; i < sizeof(output); i++)
// Will print:
// Hey, 
// this
// is
// a
// string
dusk is offline   Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql explode question Tanush123 Scripting Help 1 28/05/2013 12:07 PM
Explode() function? xGoldenx Scripting Help 2 11/01/2012 05:23 PM
[MYSQL] Explode vection Help Archive 1 13/09/2010 08:00 PM
MySQL Explode Reader vection Help Archive 5 11/09/2010 03:21 PM
include with explode function mario713 Help Archive 4 09/02/2010 01:39 PM

All times are GMT. The time now is 10:52 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.