Warning - 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: Warning (
/showthread.php?tid=415917)
Warning -
benel1 - 15.02.2013
pawn Код:
if(IsPlayerInDynamicRaceCP(playerid, CP[0])) return CP[1] = CreateDynamicRaceCP(0, 1608.9316, 4577.7095, 56.3715, 1608.9316, 4577.7095, 56.3715, 3.5, 2, 0, -1, 250), DestroyDynamicRaceCPs(CP[0]);
pawn Код:
warning 202: number of arguments does not match definition
Re: Warning -
MP2 - 15.02.2013
All I can see is that the last parameter (stream distance) should be a float. Just change it to 250.0.
Re: Warning -
benel1 - 15.02.2013
Quote:
Originally Posted by MP2
All I can see is that the last parameter (stream distance) should be a float. Just change it to 250.0.
|
Not working .. : \
And the warning did not stems from CreateDynamicRaceCP
It results from from DestroyDynamicRaceCP
Re: Warning -
Boooth - 15.02.2013
Well I can see your using a function labelled 'DestroyDynamicRaceCP>>s<<'?
Why is it plural, if you want to destroy all of them use DestroyAllDynamicRaceCPs();
Re: Warning -
benel1 - 15.02.2013
Quote:
Originally Posted by Boooth
Well I can see your using a function labelled 'DestroyDynamicRaceCP>>s<<'?
Why is it plural, if you want to destroy all of them use DestroyAllDynamicRaceCPs();
|
i don't want to destroy all Checkpoints ..
i want destroy the CP[0] but that give me warning ...
and i don't understand what you mean "can see your using a function labelled 'DestroyDynamicRaceCP>>s<<'"
Re: Warning -
Boooth - 15.02.2013
Use DestroyDynamicRaceCP not DestroyDynamicRaceCPs