Ajuda com Warnings no GM -
EL_puxa - 07.05.2012
//The Farmers
farmers1 = AddStaticVehicle(532,-1113.2969,-1144.4611,130.1991,1.3480,51,51,-1); // combine - 403
farmers2 = AddStaticVehicle(532,-1104.0477,-1144.2733,130.2081,0.3997,51,51,-1); // combine - 404
farmers3 = AddStaticVehicleEx(560,-1038.1887,-1164.8807,128.9163,94.4897,51,51,-1); // Quad - 405
farmers4 = AddStaticVehicleEx(478,-1038.1006,-1168.9584,129.2323,90.7321,51,51,-1); // walton - 406
farmers5 = AddStaticVehicleEx(468,-1066.4905,-1156.8114,128.8878,7.2257,51,51,-1); // walton - 407
farmers6 = AddStaticVehicleEx(468,-1069.6799,-1157.0691,128.8878,6.4776,51,51,-1); // walton - 408
farmers7 = AddStaticVehicleEx(506,-1058.7258,-1215.3517,128.8820,326.2488,51,51,-1); // sentinel - 409
farmers8 = AddStaticVehicleEx(478,-1038.0490,-1172.7153,129.2258,92.1300,51,51,-1); // sentinel - 410
farmers9 = AddStaticVehicleEx(471,-1073.2156,-1157.0459,128.6357,2.9620,51,51,-1); // sentinel - 411
farmers10 = AddStaticVehicleEx(471,-1076.8096,-1156.9227,128.6997,2.0226,51,51,-1); // sentinel - 412
farmers11 = AddStaticVehicle(532,-1093.8103,-1144.0675,130.1921,0.7908,51,51,-1); // combine
Farmers Farmers1(2141)warning 202: number of arguments does not match definition
Farmers 2(2142)warning 202: number of arguments does not match definition
Farmers 11(2151)warning 202: number of arguments does not match definition
Alguem pode dar uma ajuda??
Ficaria agradecido!
Re: Ajuda com Warnings no GM -
WLSF - 07.05.2012
AddStaticVehicle, tб usando um parвmetro a mais...
Troque por AddStaticVehicleEx,
Espero ter ajudado.
Coloque:
pawn Код:
farmers1 = AddStaticVehicleEx(532,-1113.2969,-1144.4611,130.1991,1.3480,51,51,9999999); // combine - 403
farmers2 = AddStaticVehicleEx(532,-1104.0477,-1144.2733,130.2081,0.3997,51,51,9999999); // combine - 404
farmers11 = AddStaticVehicleEx(532,-1093.8103,-1144.0675,130.1921,0.7908,51,51,9999999); // combine
No lugar dos antigos farmers1, 2 e 3...
Re: Ajuda com Warnings no GM -
sanalex - 07.05.2012
As duas primeiras linhas e a ъltima troque por AddStaticVehicleEx ou CreateVehicle.
Duas primeiras linhas:
pawn Код:
farmers1 = AddStaticVehicleEx(532,-1113.2969,-1144.4611,130.1991,1.3480,51,51,-1); // combine - 403
farmers2 = AddStaticVehicleEx(532,-1104.0477,-1144.2733,130.2081,0.3997,51,51,-1); // combine - 404
Ъltima:
pawn Код:
farmers11 = AddStaticVehicleEx(532,-1093.8103,-1144.0675,130.1921,0.7908,51,51,-1); // combine