still the same problems
imma send the whole OnPlayerPickupPickup maybe u see an error then..
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new str[256];
format(str,256,"You found %d Bombs",AccountInfo[playerid][unlock]);
if(pickupid == 1)
{
SetPlayerHealth(playerid,100);
}
if(pickupid == 2)
{
SetPlayerArmour(playerid,50);
}
if(pickupid == 3)
{
SetPlayerArmour(playerid,50);
}
if(pickupid == 4)
{
SetPlayerHealth(playerid,100);
}
if(pickupid == 5)
{
SetPlayerHealth(playerid,100);
}
if(pickupid == p1)
{
if(AccountInfo[playerid][up1] == 0)
{
AccountInfo[playerid][unlock] ++;
AccountInfo[playerid][up1] = 1;
SendClientMessage(playerid,LIGHTGREEN,str);
}
else
if(AccountInfo[playerid][up1] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p2)
{
if(AccountInfo[playerid][up2] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up2] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up2] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p3)
{
if(AccountInfo[playerid][up3] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up3] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up3] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p4)
{
if(AccountInfo[playerid][up4] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up4] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up4] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p5)
{
if(AccountInfo[playerid][up5] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up5] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up5] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p6)
{
if(AccountInfo[playerid][up6] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up6] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up6] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p7)
{
if(AccountInfo[playerid][up7] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up7] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up7] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p8)
{
if(AccountInfo[playerid][up8] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up8] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up8] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
if(pickupid == p9)
{
if(AccountInfo[playerid][up9] == 0)
{
SendClientMessage(playerid,LIGHTGREEN,str);
AccountInfo[playerid][up9] = 1;
AccountInfo[playerid][unlock] ++;
}
else
if(AccountInfo[playerid][up9] == 1)
{
SendClientMessage(playerid,ADMIN_RED,"You already picked up this pickup.");
}
}
return 1;
}