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
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");
}
}
switch(listitem)
switch (strval(listitem))
You're not showing us any warnings, but they're probably being caused by
Код:
switch(listitem) Use Код:
switch (strval(listitem)) |
C:\Users\Magnus\Desktop\Scrath rp\gamemodes\grandlarc.pwn(2772) : error 035: argument type mismatch (argument 1)
case 0: PlayerInfo[playerid][pPhoneNumber], GetPVarInt(playerid,"Num1"), format(number, 50, "%s", GetPVarInt(playerid,"Num1"));
PlayerInfo[playerid][pPhoneNumber]; GetPVarInt(playerid,"Num1"); format(number, 50, "%s", GetPVarInt(playerid,"Num1"));
Let's take this line as an example:
pawn Код:
Код:
PlayerInfo[playerid][pPhoneNumber]; GetPVarInt(playerid,"Num1"); format(number, 50, "%s", GetPVarInt(playerid,"Num1")); @Stinged: Confused with "inputtext". |
Let's take this line as an example:@Stinged: Confused with "inputtext".
|