SA-MP Forums Archive
Ehh' how the f*ck i supposed to do it? O_O - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ehh' how the f*ck i supposed to do it? O_O (/showthread.php?tid=581086)



Ehh' how the f*ck i supposed to do it? O_O - Lirbo - 10.07.2015

PHP код:
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(pFile(playerid),String)+1);
format(String,sizeof(String),"B%i",pWep);
DOF2_SetInt(pFile(playerid),String,DOF2_GetInt(pFile(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