For don't work... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: For don't work... (
/showthread.php?tid=484467)
For don't work... -
Noliax8 - 30.12.2013
Hi
I want retrieve data of my database, except that i don't work with one loops because don't she work!
I so did does like this:
http://pastebin.com/qdR3aVHK
But, i did test my pawn code with PHP and the result was equal!
http://pastebin.com/0CHEW2TQ
I don't have errors,
but the execution of the server stops.
Here the value of:
data (
acc_pos in my database)
Код:
0.055998/-0.266999/-0.030998/154.400054/86.700019/6.099997/1.000000/1.000000/1.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000/0.000000
Thank!
Re : For don't work... -
Noliax8 - 31.12.2013
Please help me
Re : For don't work... -
Noliax8 - 01.01.2014
Nobody knows?
Re : For don't work... -
FilesMAker - 01.01.2014
I have some problem one day but it fixed when the max "45" setted on the top e.g : #define LoopMax 45
Then :
for(new i; i < LoopMax; i++)
{
//your code
}
Re: For don't work... -
NikO1 - 01.01.2014
@Noliax8 that is spamming you might get a 6 point infraction due to multiple spam.
Re: For don't work... -
Jessyy - 01.01.2014
Try this!
Код:
new elements = 9,
size = split2(data, value_acc, '/');
for(new i = -1, j = 0; j < size; j++) {
if((j % elements) == 0) i++;
pAccessoirePos[playerid][i][j] = floatstr(value_acc[i]);
}