13.06.2016, 15:27
I can't get rid of those warning maybe you guys can help me out?, thanks in advance!
Код:
C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2773) : warning 215: expression has no effect C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2774) : warning 215: expression has no effect C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2775) : warning 215: expression has no effect C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2776) : warning 215: expression has no effect C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2777) : warning 215: expression has no effect C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2778) : warning 215: expression has no effect
PHP код:
if(dialogid == DIALOG_BUYMOBILE2) // aka 128
{
if(response)
{
new string[128], number[50];
switch(listitem)
{
case 0: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num1"), format(number, 50, "%s", GetPVarInt(playerid,"Num1"));
case 1: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num2"), format(number, 50, "%s", GetPVarInt(playerid,"Num2"));
case 2: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num3"), format(number, 50, "%s", GetPVarInt(playerid,"Num3"));
case 3: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num4"), format(number, 50, "%s", GetPVarInt(playerid,"Num4"));
case 4: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num5"), format(number, 50, "%s", GetPVarInt(playerid,"Num5"));
case 5: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num6"), format(number, 50, "%s", GetPVarInt(playerid,"Num6"));
}
format(string, 128, "Number set to '%s'.", number);
SendClientMessage(playerid, COLOR_WHITE, string);
DeletePVar(playerid, "Num1");
DeletePVar(playerid, "Num2");
DeletePVar(playerid, "Num3");
DeletePVar(playerid, "Num4");
DeletePVar(playerid, "Num5");
DeletePVar(playerid, "Num6");
}
}