12.06.2011, 03:49
Quote:
Since SA-MP 0.3c the server console puts out an error because of this script code:
Streamer_GetFloatData(STREAMER_TYPE_CP,cp[cpid],E_STREAMER_X,cx); The error: *** Streamer_GetFloatData: Invalid data specified I want to GetFloatData from checkpoints, which can be active or inactive. What is my mistake? The strange thing is, the error comes since 0.3c |
you need to make some check for it, for example:
pawn Код:
if(cp[cpid] != -1)//-1 is your value that it means no checkpoint ID is assigned to it
{
Streamer_GetFloatData(STREAMER_TYPE_CP,cp[cpid],E_STREAMER_X,cx);
//Some more of your code
}
else
{
//Your code when no checkpoint ID is assigned to that.
}