[Tutorial] How to fix "warning 202: number of arguments does not match definition" on SA:MP 0.3.7
#9

I actually did try that, but that shouldn't be the issue tho since it's show for all of them
Код:
C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\GetVehicleColor.inc(124) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\GetVehicleColor.inc(125) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\GetVehicleColor.inc(126) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\GetVehicleColor.inc(127) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle")
These were not updated

DestroyVehicle
AddStaticVehicle


now if i do this

PHP код:
#define n_CreateVehicle CreateVehicle 
The warnings go away, but since i'm waiting for an issue i'm having with ysi i can't test if that's a legit fix or not, i don't think it is tho.

Adding
PHP код:
#include <a_samp> 
Dosen't work either

Doing this
PHP код:
#if defined _ALS_CreateVehicle
    #undef CreateVehicle
#else
    #define _ALS_CreateVehicle
#endif 
Gets rid of the warnings as well
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)