27.10.2014, 04:20
por que no asн?
pawn Код:
cmd(cmueble, playerid, params[])
{
if(!sscanf(params, "s[64]", params[0]))
{
if(strcmp(params[0], "TV", true) == 0)
{
PlayerInfo[playerid][pTV] = 1;
SendClientMessage(playerid, -1, "Has comprado una TV");
}
else if(strcmp(params[0], "Armario", true) == 0)
{
PlayerInfo[playerid][pArmario] = 1;
SendClientMessage(playerid, -1, "Has comprado un Armario");
}
else if(strcmp(params[0], "Cama", true) == 0)
{
PlayerInfo[playerid][pCama] = 1;
SendClientMessage(playerid, -1, "Has comprado una Cama");
}
else if(strcmp(params[0], "Inodoro", true) == 0)
{
PlayerInfo[playerid][pInodoro] = 1;
SendClientMessage(playerid, -1, "Has comprado un Inodoro");
}
} else SendClientMessage(playerid, -1, "Utiliza: /cmueble <TV> | <Armario> | <Cama> | <Inodoro>");
return 1;
}