01.03.2014, 15:30
okay here are the lines:
CMD:ginklas(playerid, params[])
{
new string;
new gunid;
new kulkos;
if(sscanf(params, "i", gunid, kulkos)) SendClientMessage(playerid, COLOR_ORANGE, "Teisingas Naudojimas: /ginklas id");
else if(gunid < 1 || gunid > 46) SendClientMessage(playerid, COLOR_ORANGE, "Tokio Ginklo Nera!"
else if(kulkos < 1) SendClientMessage(playerid, COLOR_ORANGE, "0 Kulku Negali Paimti");
else if(kulkos > 500) SendClientMessage(playerid, COLOR_ORANGE, "Kulku Pasiemino Limitas: 500");
else
{
GivePlayerWeapon(playerid, gunid, kulkos);
format(string,sizeof(string),"Pasiemiai Pasirinkto Ginklo %s Kulku!",kulkos);
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}
}
the error is in the line :new string;
how can i fix that ?
CMD:ginklas(playerid, params[])
{
new string;
new gunid;
new kulkos;
if(sscanf(params, "i", gunid, kulkos)) SendClientMessage(playerid, COLOR_ORANGE, "Teisingas Naudojimas: /ginklas id");
else if(gunid < 1 || gunid > 46) SendClientMessage(playerid, COLOR_ORANGE, "Tokio Ginklo Nera!"
else if(kulkos < 1) SendClientMessage(playerid, COLOR_ORANGE, "0 Kulku Negali Paimti");
else if(kulkos > 500) SendClientMessage(playerid, COLOR_ORANGE, "Kulku Pasiemino Limitas: 500");
else
{
GivePlayerWeapon(playerid, gunid, kulkos);
format(string,sizeof(string),"Pasiemiai Pasirinkto Ginklo %s Kulku!",kulkos);
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}
}
the error is in the line :new string;
how can i fix that ?