grandlarc.pwn(603) : error 035: argument type mismatch (argument 2)
if(dialogid==2)
{
if(response)
{
new message[256];
format(message, 256, "Your skin has been changed to %i.", inputtext);
SendClientMessage(playerid, -1, message);
SetPlayerSkin(playerid, inputtext); //line 603
return 1;
}
}
strvar(inputtext)
you can not pass string array to the integer value
use this instead of inputtext Code:
strvar(inputtext) |
if(dialogid==2) { if(response) { new message[256]; format(message, 256, "Your skin has been changed to %i.", inputtext); SendClientMessage(playerid, -1, message); SetPlayerSkin(playerid, strval(inputtext)); //line 603 return 1; } }
you mean strval
https://sampwiki.blast.hk/wiki/Strval Code:
if(dialogid==2) { if(response) { new message[256]; format(message, 256, "Your skin has been changed to %i.", inputtext); SendClientMessage(playerid, -1, message); SetPlayerSkin(playerid, strval(inputtext)); //line 603 return 1; } } |