PDA

View Full Version : Ehh' how the f*ck i supposed to do it? O_O


Lirbo
10/07/2015, 03:07 PM
if(dialogid == 5){
if(!response) return 1;
switch(listitem){
case 0:{
new pWep = GetPlayerWeapon(playerid);
new pAmo = GetPlayerAmmo(playerid);
format(String,sizeof(String),"W%i",pWep);
DOF2_SetInt(pFile(playerid),String,DOF2_GetInt(pFi le(playerid),String)+1);
format(String,sizeof(String),"B%i",pWep);
DOF2_SetInt(pFile(playerid),String,DOF2_GetInt(pFi le(playerid),String)+pAmo);
SetPlayerAmmo(playerid,pWep,0);}}
return 1;}


At my character file it created this insated of "B(weapon id)":
Accounts/Angelo Castello.ini = 103