30.07.2017, 04:56
hello friends i have problem with inputtexts i really cant use it
heres my code
I am really lost. Any help is appreciated.
heres my code
Код:
case 2455: { new puttext; format(puttext,1,inputtext); new i = GetPVarInt(playerid,"playerVehID"); if(strval(puttext)=="1") { if(vInfo[i][vehGun1]==0) { vInfo[i][vehGun1]=USER[playerid][GUN1]; vInfo[i][vehAmmo1]=USER[playerid][AMMO1]; USER[playerid][GUN1]=0; USER[playerid][AMMO1]=0; } if(vInfo[i][vehGun2]==0) { vInfo[i][vehGun2]=USER[playerid][GUN1]; vInfo[i][vehAmmo2]=USER[playerid][AMMO1]; USER[playerid][GUN1]=0; USER[playerid][AMMO1]=0; } if(vInfo[i][vehGun3]==0) { vInfo[i][vehGun3]=USER[playerid][GUN1]; vInfo[i][vehAmmo3]=USER[playerid][AMMO1]; USER[playerid][GUN1]=0; USER[playerid][AMMO1]=0; } } if(strval(puttext)=="2") { if(vInfo[i][vehGun1]==0) { vInfo[i][vehGun1]=USER[playerid][GUN2]; vInfo[i][vehAmmo1]=USER[playerid][AMMO2]; USER[playerid][GUN2]=0; USER[playerid][AMMO2]=0; } if(vInfo[i][vehGun2]==0) { vInfo[i][vehGun2]=USER[playerid][GUN2]; vInfo[i][vehAmmo2]=USER[playerid][AMMO2]; USER[playerid][GUN2]=0; USER[playerid][AMMO2]=0; } if(vInfo[i][vehGun3]==0) { vInfo[i][vehGun3]=USER[playerid][GUN2]; vInfo[i][vehAmmo3]=USER[playerid][AMMO2]; USER[playerid][GUN2]=0; USER[playerid][AMMO2]=0; } } if(strval(puttext)=="3") { if(vInfo[i][vehGun1]==0) { vInfo[i][vehGun1]=USER[playerid][GUN3]; vInfo[i][vehAmmo1]=USER[playerid][AMMO3]; USER[playerid][GUN3]=0; USER[playerid][AMMO3]=0; } if(vInfo[i][vehGun2]==0) { vInfo[i][vehGun2]=USER[playerid][GUN3]; vInfo[i][vehAmmo2]=USER[playerid][AMMO3]; USER[playerid][GUN3]=0; USER[playerid][AMMO3]=0; } if(vInfo[i][vehGun3]==0) { vInfo[i][vehGun3]=USER[playerid][GUN3]; vInfo[i][vehAmmo3]=USER[playerid][AMMO3]; USER[playerid][GUN3]=0; USER[playerid][AMMO3]=0; } }