13.01.2015, 16:08
Estoy empezando a cambiar de strcmp a zcmd y me sale algunos errores me ayudan
asi lo tenia
|-Asi lo puse-|
Cuando copilo no me sale los errores si no que me sale pawn compiler library dejo de funcionar
asi lo tenia
pawn Код:
if(strcmp(cmd, /armarse", true) == 0) {
if(PlayerInfo[playerid][pFaccion] == 1){
if(IsPlayerInRangeOfPoint(playerid,6.0,274.5042,119.2094,1004.6172)){
GivePlayerWeapon(playerid, 24, 9977);
GivePlayerWeapon(playerid, 3, 9977);
GivePlayerWeapon(playerid, 27, 9977);
GivePlayerWeapon(playerid, 31, 9977);
GivePlayerWeapon(playerid, 29, 9977);
SetPlayerArmour(playerid,100);
}
}
return 1;
}
pawn Код:
CMD:armarse(playerid,params[])
if(PlayerInfo[playerid][pFaccion] == 1){
if(IsPlayerInRangeOfPoint(playerid,6.0,274.5042,119.2094,1004.6172)){
GivePlayerWeapon(playerid, 24, 8888);
GivePlayerWeapon(playerid, 3, 8888);
GivePlayerWeapon(playerid, 27, 8888);
GivePlayerWeapon(playerid, 31, 8888);
GivePlayerWeapon(playerid, 29, 8888);
SetPlayerArmour(playerid,100);
}
}
return 1;
}